Справка Houdini на русском Nodes VOP nodes

Constant VOP node

Outputs a constant value of any VEX data type.

On this page

This operator outputs a constant value of any VEX data type.

Use this operator type to create a value that is not going to change between different instantiations of the VEX operator defined by the VOP network. For example, if a shading function required multiplying a value by 2, or finding the cross product of a vector and { 0, 1, 0 }, the values 2 and { 0, 1, 0 } would most easily be represented by a Constant VOP. If the value 2 or { 0, 1, 0 } might change depending on the properties of the material being shaded, a Parameter VOP should be used instead.

Unlike this operator, the Parameter VOP allows the specification of a different value for each instantiation of the OP type that uses this VOP network. For example, if you want the surface color to be accessed by a Surface shader (SHOP) using this VOP network, make the color a Parameter VOP instead of a Constant.

Outputs

Constant Value

The value specified by the parameters of this operator.

Parameters

Constant Type

Specifies the VEX data type of the value output by this operator. In some cases there is more than one way to represent a VEX data type. For example, the vector type can be represented by 3 float values, or a single color value. This parameter also specifies how the VEX value should be represented. This determines which parameter to use to define the value output from this operator.

Default Values

Represents the value of the constant in the VEX function.

Constant Name

The name of the constant defined by this operator, both in the generated VEX code and on the operator tile’s output.

Outputs

Constant Value

The value specified by the parameters of this operator.

Examples

The following examples include this node.

Stadium Crowd Example Example for Crowd Solver dynamics node

Street Crowd Example Example for Crowd Solver dynamics node

FlipColumn Example for FLIP Solver dynamics node

FlipFluidWire Example for FLIP Solver dynamics node

SpinningFlipCollision Example for FLIP Solver dynamics node

DiffuseSmoke Example for Gas Diffuse dynamics node

grass

FluidGlass Example for Particle Fluid Solver dynamics node

CurveForce Example for POP Curve Force dynamics node

2dfluid Example for Smoke Object dynamics node

BreakWire Example for Wire Solver dynamics node

MotionVector Example for Mantra render node

RampReference

Down Hill Lava Flow Example for Material shader node

FirePit Example for Material shader node

StyleDisplacement Example for Material shader node

RandomMaterial Example for Attribute String Edit geometry node

FurBall Example for Fur geometry node

FurBallWorkflow Example for Fur geometry node

FurPipelineExample Example for Fur geometry node

FurTextureMap Example for Fur geometry node

PaintPoints Example for Paint geometry node

AlphaOmega Example for Points from Volume geometry node

CircleSolvers Example for Solver geometry node

UnpackWithStyle Example for Unpack geometry node

DetectOverlap Example for Volume Merge geometry node

Fuzzy Logic Obstacle Avoidance Example Example for Fuzzy Defuzz VOP node

SimpleInsideSubnet

SimpleOutsideSubnet

SimpleMetaImport Example for Meta-Loop Import VOP node

PointCloudIterateAverage Example for Point Cloud Iterate VOP node

See also

VOP nodes