web analytics

Houdini VEX Attributes

Home / Blog / Houdini VEX Attributes

Popular Built-in VEX Attributes (Global Variables)

General  
typenamedescription
int@ptnumPoint Number
int@numptTotal number of points
float@TimeCurrent time, in seconds
float@TimeIncTime increment per frame in seconds
float@FrameCurrent frame
int@primnumPrimitive Number
int@numprimTotal number of primitives
int@vtxnumVertex number
int@numvtxTotal number of vertices
Geometry
typenamedescription
vec3@PPoint/Primitive Position
vec3@NPoint/Primitive/Vertex Normal
vec3@vVelocity (ex: motion blur in particle systems)
float@pscaleUniform scale. Used in copy-SOP or particle systems
vec3@scaleNon-Uniform scale. For use see pscale
vec3@upUp-Vector. Used together with @N to orient point/particle/instance
vec4@orientQuaternion defining the rotation of a point/particle/instance
vec3@rotQuaternion definig additional rotation
vec3@transTranslation of instance
matrix@transformTransformation matrix (used for example in Copy-Sop)
vec3@pivotLocal pivot point for instance
float@lodDetail/Primitive level of detail
vec3@restRest position
vec3@forceForce (acting on particle)
float@ageParticle Age
float@lifeMax. Particle Life
Volumes  
typenamedescription
float@densityDensity of voxel
int@ix, @iy, @izVoxel indices along each axis. Ranging from 0 to resolution -1
vec3@centerCenter of current Volume
vec3@origBottom left corner of current Volume
vec3@sizeSize of current Volume
vec3@dPdxChange in position to get from one voxel to the next in x direction
vec3@dPdyChange in position to get from one voxel to the next in y direction
vec3@dPdzChange in position to get from one voxel to the next in z direction
vec3@BBrelative position inside bounding box. Ranging from {0,0,0} to {1,1,1}
Shading  
TypeNameDescription
vec3@CdDiffuse Color
float@AlphaAlpha Transparency
vec3@uvPoint/Vertex/ UV coordinates
vec3@CsSpecular Color
vec3@CrReflective Color
vec3@CtTransmissive Color
vec3@CeEmissive Color
float@roughRoughness
float@fresnelFresnel Coefficient
float@shadowShadow intensity
float@sbiasShadow bias
typenamedescription
vec3@PInstance Position
float@pscaleUniform Scale
vec3@scaleNon Uniform Scale
vec3@NNormal (+Z axis of the copy, if no orient)
vec3@upUp-Vector. Used together with @N to orient instance (+Y axis of the copy, if no orient)
vec4@orientQuaternion defining the rotation of a point/particle/instance
vec4@rotQuaternion defining additional rotation (applied after @orient)
vec3@vVelocity (motion blur, also used as +Z axis of the copy if no orient or N is present
vec3@transTranslation of instance
matrix@transformTransformation matrix (used for example in Copy-SOP
vec3@pivotLocal pivot point for instance

Laisser un commentaire

Votre adresse de messagerie ne sera pas publiée. Les champs obligatoires sont indiqués avec *