VEX Dictionary
1024 functions in shadow · showing the first 200
- fitexamplesRemaps a value from one range into another, clamped to the new range.
- nearpointsexamplesLists the point numbers nearest to a position, closest first, within a search radius.
- noiseexamplesSmooth Perlin-style noise from a position, centred around 0.5.
- pcopenexamplesOpens a point cloud query around a position and returns a handle for the other pc functions.
- primuvexamplesReads any attribute at an exact parametric (uv) location on a primitive.
- xyzdistexamplesFinds the closest spot on another geometry's surface: its distance, primitive and parametric uv.
- absComputes the absolute value of an int, float, or vector, per component.
- abspathConverts a relative file path to an absolute one, without requiring the file to exist.
- acosComputes the inverse cosine (arccosine) of a float or vector, component-wise.
- acospiComputes the arccosine of a value divided by pi, for scalars or vectors.
- addattribCreates a new attribute of a chosen class (detail, point, vertex, or primitive) with a default value.
- adddetailattribCreates a detail (whole-geometry) attribute with a default value and optional transform typing.
- addpointCreates a new point at a given position, or as a copy of an existing point, and returns its number.
- addpointattribCreates a point attribute with a default value and optional transform-type metadata.
- addprimCreates a new primitive, such as a poly, optionally wiring it to given points.
- addprimattribCreates a primitive attribute with a default value and optional transform-type metadata.
- addvariablenameMaps an attribute name to a local $-style variable name for use in supporting SOPs.
- addvertexAppends a new vertex to a primitive, connects it to a given point, and returns the new vertex's index.
- addvertexattribCreates a vertex attribute with a default value and optional transform-type metadata.
- addvisualizerAppends a reference to another node's visualizers onto the visualizer attribute stored at a geometry's detail level.
- agentchannelcountCounts how many channels an agent primitive's animation rig defines.
- agentchannelnamesLists every channel name defined by the rig of an agent primitive.
- agentchannelvalueReads the current value of one channel in an agent primitive's rig.
- agentchannelvaluesReads the current values of every channel in an agent primitive's rig at once.
- agentclipcatalogLists every animation clip that has been loaded into an agent primitive's definition.
- agentclipchannelLocates a named channel inside one of an agent's animation clips and gives back its index.
- agentclipchannelnamesLists the channel names contained in one of an agent primitive's animation clips.
- agentcliplayerblendCombines a set of values, weighting them by the layer weights and hierarchy of an agent's animation.
- agentcliplayersamplelocalEvaluates and mixes the layered clips on an agent, giving local-space transforms for its rig.
- agentcliplayersampleworldEvaluates and mixes the layered clips on an agent, giving world-space transforms for its rig.
- agentcliplengthReports the duration in seconds of a named animation clip on an agent primitive.
- agentclipnamesLists the animation clips currently assigned to an agent primitive.
- agentclipsampleSamples one channel's value from an agent's animation clip at a given time.
- agentclipsamplelocalSamples an agent's clip at a given time, returning local-space rig transforms.
- agentclipsamplerateReads the sample rate stored for one of the animation clips on an agent primitive.
- agentclipsampleworldSamples an agent's clip at a given time, returning world-space rig transforms.
- agentclipstarttimeReads when, in seconds, one of the animation clips on an agent primitive begins.
- agentcliptimesLists, for every animation clip on an agent primitive, the playback time it is currently at.
- agentcliptransformgroupsLists the transform groups used by an agent primitive's currently assigned clips.
- agentclipweightsLists how strongly each animation clip currently assigned to an agent primitive is weighted in the blend.
- agentcollisionlayersLists the collision layer names defined on an agent primitive.
- agentcurrentlayersLists which layers are currently active on an agent primitive, by name.
- agentfindclipLooks up a clip by name in an agent primitive's definition and returns its index.
- agentfindlayerLooks up a layer by name in an agent primitive's definition and returns its index.
- agentfindtransformgroupLooks up a transform group by name in an agent primitive's definition and returns its index.
- agentlayerbindingsReports the rig transform that every shape within one of an agent's layers binds to.
- agentlayersLists every layer loaded into the definition of an agent primitive.
- agentlayershapesLists shape names referenced by an agent's layer for a given shape type or transform.
- agentlocaltransformGets one rig transform's matrix relative to its parent, as the agent primitive is posed right now.
- agentlocaltransformsReads the current transforms of all bones in an agent primitive's rig, expressed in local space.
- agentmetadataReads the metadata dictionary stored in an agent primitive's shared definition.
- agentrestlocaltransformReads the local-space rest-pose transform of one joint in an agent's rig.
- agentrestworldtransformReads the world-space rest-pose transform of one joint in an agent's rig.
- agentrigchildrenLists the direct child transforms of a given transform in an agent's rig.
- agentrigfindLooks up a transform by name in the rig of an agent primitive and returns its index.
- agentrigfindchannelLooks up a channel by name in the rig of an agent primitive and returns its index.
- agentrigparentLooks up which transform is the parent of a given rig transform, returning -1 at the root.
- agentsolvefbikRuns a full-body IK solve on an agent's skeleton to reach target transforms.
- agenttransformcountCounts the transforms, or bones, that make up the rig of an agent primitive.
- agenttransformgroupmemberChecks whether a given rig transform belongs to a named transform group.
- agenttransformgroupmemberchannelChecks whether a rig channel belongs to the transform group at a given index in an agent's definition.
- agenttransformgroupsLists the transform group names defined in an agent's rig.
- agenttransformgroupweightReturns a transform's blend weight within a given transform group, or zero if absent.
- agenttransformnamesLists the names of all transforms making up the rig of an agent primitive.
- agenttransformtolocalTurns an array of world-space transforms into local-space ones for an agent's rig.
- agenttransformtoworldTurns an array of local-space transforms into world-space ones for an agent's rig.
- agentworldtransformGets one rig transform's matrix accumulated through all its parents, as the agent primitive is posed right now.
- agentworldtransformsReads the current transforms of all bones in an agent primitive's rig, expressed in world space.
- albedoEstimates the fraction of light a bsdf reflects, given an outgoing view direction.
- anoiseGenerates cellular "alligator" noise at a 3D position, similar in look to Worley noise.
- appendAdds a value or array of values onto the end of an array or string.
- areaEstimates, in pixels, the shading area of the micropolygon surrounding a derivable variable like P.
- argsortReturns the indices that would sort an array's values into increasing order.
- arrayBuilds an array out of the given arguments; wrap it in a type cast such as
vector[]()to type it correctly. - ashikhminBuilds an anisotropic specular bsdf with independent highlight sizes along two tangent directions.
- asinComputes the inverse sine (arcsine) of a float or vector, component-wise.
- asinpiComputes the arcsine of a value divided by pi, for scalars or vectors.
- assert_enabledReports whether VEX assertions are turned on via the HOUDINI_VEX_ASSERT environment variable.
- assignUnpacks a vector or matrix's components directly into separate float variables efficiently.
- atanComputes the inverse tangent of a value, or of y/x, per component for vectors.
- atan2Computes the angle whose tangent is y/x, using both signs to pick the right quadrant.
- atan2piComputes the angle whose tangent is y/x, then divides the result by pi, giving -1 to 1.
- atanpiComputes the inverse tangent of a value, or of y/x, divided by pi, for scalars or vectors.
- atofParses a string into a floating-point number, ignoring surrounding whitespace and supporting exponents.
- atoiParses a string into an integer, optionally using a specified numeric base.
- attenComputes simple distance attenuation as attenuation divided by attenuation plus distance.
- attribReads a point, primitive, vertex, or detail attribute's value with the class chosen at runtime.
- attribclassReturns which class (detail, primitive, point, or vertex) a named attribute belongs to.
- attribdataidReturns an attribute's internal data id, useful for caching acceleration structures across cooks.
- attribsizeGives an attribute type's tuple size, for example the number of components in a vector.
- attribtypeReturns a numeric code identifying an attribute's data type, such as float or string.
- attribtypeinfoReads the transform-related metadata string describing how an attribute should be transformed.
- avgComputes the average of one or more numeric arguments, or of a vector's components.
- blackbodyDerives an incandescent black body's CIE XYZ color from a temperature and a luminance.
- blinnBuilds a Blinn specular bsdf, or directly evaluates Blinn shading for a normal and view vector.
- blinnBRDFComputes the Blinn BRDF value for given light, normal, and view vectors, for use in custom illuminance loops.
- bouncelabelReturns the text label associated with a given bounce or shading-component bitmask.
- bouncemaskConverts a space-separated list of shading-component labels into a bounce bitmask.
- bumpmapSamples a texture file's bump derivatives directly; superseded by
Du/Dvontexture. - bumpmapASamples the alpha channel's bump derivatives from a texture file; superseded by
Du/Dvontexture. - bumpmapBSamples the blue channel's bump derivatives from a texture file; superseded by
Du/Dvontexture. - bumpmapGSamples the green channel's bump derivatives from a texture file; superseded by
Du/Dvontexture. - bumpmapLSamples the luminance channel's bump derivatives from a texture file; superseded by
Du/Dvontexture. - bumpmapRSamples the red channel's bump derivatives from a texture file; superseded by
Du/Dvontexture. - cbrtComputes the cube root of a float or vector, component-wise.
- ceilRounds a float or vector up to the nearest integer, component-wise.
- chEvaluates a node channel or parameter at the current or a given time and returns its value.
- ch2Evaluates a matrix2-type parameter's component channels together and returns them as a matrix2.
- ch3Evaluates a matrix3-type parameter's component channels together and returns them as a matrix3.
- ch4Evaluates a 4x4 matrix-type parameter's component channels together and returns them as a matrix.
- chdictEvaluates a parameter holding a key-value dictionary and gives back its contents as a dict.
- chexprEvaluates a channel using a substituted segment expression, useful for extracting slope or acceleration.
- chexprfSubstitutes a segment expression into a channel and evaluates it at a specific frame.
- chexprtSubstitutes a segment expression into a channel and evaluates it at a specific time in seconds.
- chfEvaluates a float channel or parameter at the current or a given time.
- chiEvaluates an integer channel or parameter at the current or a given time.
- chiangBuilds a bsdf implementing the Chiang physically based hair and fur shading model, for curve geometry.
- chiang_furBuilds a bsdf extending the Chiang hair model with a medulla term for thick fur.
- chidResolves a channel path into an operator id, parameter index, and vector index, or validates them.
- chopReads a sample from a named CHOP node's channel, interpolating for fractional sample indices.
- choplocalReads a sample from a CHOP node's local transform channel at a given index.
- choplocaltReads a CHOP node's local transform channel at a given sample and evaluation time.
- choptReads a CHOP node's channel at a given sample index and evaluation time.
- chpEvaluates a vector4 channel or parameter, combining its component channels, at the current or a given time.
- chprim_clearClears all keyframes from a channel primitive identified by a geometry handle and index.
- chprim_destroykeyRemoves the keyframe at a specific time from a channel primitive on a geometry handle.
- chprim_endReports when a channel primitive's animation ends, in seconds.
- chprim_evalSamples the value of a channel primitive at a specified time in seconds.
- chprim_insertkeyInserts a new keyframe at a specified time into a channel primitive.
- chprim_keycountCounts the number of keyframes stored in a channel primitive.
- chprim_keytimesLists, in seconds, when each keyframe occurs within a channel primitive.
- chprim_keyvaluesLists the value of every keyframe stored in a channel primitive.
- chprim_lengthReports how many seconds long a channel primitive's timeline runs.
- chprim_setkeyaccelModifies the acceleration already set on a channel-primitive key, optionally just the in or out half.
- chprim_setkeyslopeAdjusts the in or out slope of an existing key on a channel primitive.
- chprim_setkeyvalueOverwrites the value stored at an existing key on a channel primitive.
- chprim_startReports when a channel primitive's animation begins, in seconds.
- chrConverts a single Unicode codepoint into its UTF-8 encoded string form.
- chrampSamples a ramp channel or parameter at a normalized position, optionally at a set time.
- chrampderivComputes the slope of a ramp channel at a given position along its curve.
- chsEvaluates a string channel or parameter and returns its current text value.
- chsopReads an operator-path channel or parameter and returns the target node's path.
- chsrawReturns a channel's raw expression text without evaluating it.
- chuEvaluates a channel or two-component parameter and returns it as a vector2.
- chvEvaluates a channel or vector parameter, by name or operator id, returning a vector.
- cksplineInterpolates a Catmull-Rom spline through explicit position and value key pairs at a given t.
- clampConstrains a number or vector so each component stays between a minimum and maximum.
- clipTrims a line segment, in place, against a plane or an axis-aligned bounding box.
- colormapSamples a filtered color, with optional alpha, from an image file at uv coordinates.
- combinelocaltransformBuilds a world transform from local and parent transforms, honoring a scale-inheritance mode.
- computenormalComputes a normal in shading contexts; in SOP context, it instead decides if normals get recomputed.
- concatJoins multiple strings into one, faster than repeated plus-operator concatenation for 3 or more.
- coneBuilds a cone-shaped specular reflectance lobe around a given direction and angle.
- cosComputes the cosine of a float or each component of a vector.
- coshComputes the hyperbolic cosine of a float or each component of a vector.
- cospiComputes the cosine after first multiplying the input by pi.
- cracktransformBreaks a transform matrix into translate, rotate, scale, and shear components around a pivot.
- create_cdfBuilds a cumulative distribution function array from an input probability density function array.
- create_pdfBuilds a probability density function array from a set of input weight values.
- cregioncapturetransformReads the capture transform of a Capture Region SOP without cooking the node.
- cregiondeformtransformReads the deform transform of a Capture Region SOP without cooking the node.
- cregionoverridetransformReads a Capture Region SOP's capture or deform transform, chosen by the global override flag.
- crossComputes the cross product of two 3D vectors.
- csplineInterpolates a Catmull-Rom spline through evenly spaced key values across a 0 to 1 range.
- ctransformConverts a color triplet from one color space, such as RGB or HSV, into another.
- curlgxnoiseGenerates a divergence-free 3D vector field by taking the curl of simplex noise.
- curlgxnoise2dGenerates a divergence-free 2D vector field, confined to the XY plane, from simplex noise curl.
- curlnoiseGenerates a divergence-free 3D vector field from the curl of two Perlin noise fields.
- curlnoise2dGenerates a 2D, divergence-free noise field in the XY plane from Perlin noise curl.
- curlxnoiseGenerates a divergence-free 3D vector field from the curl of two simplex noise fields.
- curlxnoise2dGenerates a 2D, divergence-free noise field in the XY plane from simplex noise curl.
- curvearclenMeasures the curve length spanned between two parametric coordinates along a curve built from an array of control point positions.
- cvex_bsdfBuilds a custom BSDF by pairing separate CVEX shaders for evaluation and sampling.
- cwnoiseComputes Chebyshev-distance cellular noise at a position, returning distances to nearby seed points.
- decodeRecovers a string previously packed into a valid variable name by
encode. - decodeattribRecovers a string previously packed into a valid attribute or group name by
encodeattrib. - decodeparmRecovers a string previously packed into a valid node parameter name by
encodeparm. - decodeutf8Splits a UTF-8 string into an array of integer Unicode codepoints.
- degreesConverts a radian value, or each vector component, into degrees.
- depthmapReads the camera-to-pixel distance stored in a rendered z-depth image, unfiltered.
- detailFetches the value stored in a whole-geometry (detail) attribute of a piece of geometry.
- detailattribReads a detail attribute's value and reports, via an output flag, whether the read succeeded.
- detailattribsizeReturns how many components a geometry's detail attribute holds, like
attribsizefor other classes. - detailattribtypeReturns the data-type code of a detail attribute, like
attribtypefor other classes. - detailattribtypeinfoReturns extra type-info metadata for a detail attribute, like
attribtypeinfofor other classes. - detailintrinsicReads a built-in intrinsic value from a geometry's detail, such as bounds or count.
- determinantComputes the determinant of a 2x2, 3x3, or 4x4 matrix.
- diagExtracts a matrix's diagonal as a vector, or builds a diagonal matrix from one.
- diagonalizesymmetricDecomposes a symmetric matrix into an orthogonal matrix and its diagonal eigenvalues.
- diffuseBuilds a diffuse
bsdflobe, or in older vector forms computes Lambertian or Oren-Nayar diffuse illumination from a normal. - diffuseBRDFComputes the diffuse lighting term for reuse inside a custom illuminance loop.
- dihedralComputes a rotation, as a matrix or quaternion, that aligns one vector with another.
- dimportImports into the current shader a variable that the surface's displacement shader exported.
- distanceComputes the straight-line distance between two points; use
distance2to skip the square root. - distance2Computes the squared distance between two points, cheaper than
distancewhen only comparing. - distance_pointlineComputes the shortest distance from a point to an infinite line through a point and direction.
- distance_pointrayComputes the shortest distance from a point to a ray starting at a point and direction.
- distance_pointsegmentComputes the shortest distance from a point to a finite segment between two endpoints.
- dotComputes the dot product of two vectors, summing paired component products.
- dsmpixelReads every deep record of a named channel at a single pixel in a deep shadow or camera map, returning the count.