Houdini 18.5 VEX VEX Functions
ARRAYS
append
Adds an item to an array or string. 向数组或字符串中添加一项。
argsort
Returns the indices of a sorted version of an array. 返回数组排序版本的索引。
array
Efficiently creates an array from its arguments. 从参数中高效地创建数组。
foreach
Loops over the items in an array, with optional enumeration. 使用可选枚举循环数组中的项。
insert
Inserts an item, array, or string into an array or string. 将一个项、数组或字符串插入数组或字符串。
isvalidindex
Checks if the index given is valid for the array or string given. 检查给定的索引对于给定的数组或字符串是否有效。
len
Returns the length of an array. 返回数组的长度。
pop
Removes the last element of an array and returns it. 移除数组的最后一个元素并返回它。
push
Adds an item to an array. 向数组中添加一项。
removeindex
Removes an item at the given index from an array. 从数组中移除给定索引处的项。
removevalue
Removes an item from an array. 从数组中移除一项。
reorder
Reorders items in an array or string. 对数组或字符串中的项重新排序。
resize
Sets the length of an array. 设置数组的长度。
reverse
Returns an array or string in reverse order. 以逆序返回数组或字符串。
slice
Slices a sub-string or sub-array of a string or array. 分割字符串或数组的子字符串或子数组。
sort
Returns the array sorted in increasing order. 返回按升序排序的数组。
upush
Adds a uniform item to an array. 将统一项添加到数组中。
ATTRIBUTES AND INTRINSICS 属性和内在特性
addattrib
Adds an attribute to a geometry. 向几何图形添加属性。
adddetailattrib
Adds a detail attribute to a geometry. 向几何图形添加详图属性。
addpointattrib
Adds a point attribute to a geometry. 向几何图形添加点属性。
addprimattrib
Adds a primitive attribute to a geometry. 向几何图形添加基本属性。
addvertexattrib
Adds a vertex attribute to a geometry. 向几何图形添加顶点属性。
addvisualizer
Appends to a geometry’s visualizer detail attribute. 追加到几何的可视化工具详细信息属性。
attrib
Reads the value of an attribute from geometry. 从几何图形中读取属性值。
attribclass
Returns the class of a geometry attribute. 返回几何属性的类。
attribdataid
Returns the data id of a geometry attribute. 返回几何属性的数据id。
attribsize
Returns the size of a geometry attribute. 返回几何属性的大小。
attribtype
Returns the type of a geometry attribute. 返回几何属性的类型。
attribtypeinfo
Returns the transformation metadata of a geometry attribute. 返回几何属性的转换元数据。
detail
Reads the value of a detail attribute value from a geometry. 从几何图形中读取详图属性值。
detailattrib
Reads a detail attribute value from a geometry. 从几何图形中读取详图属性值。
detailattribsize
Returns the size of a geometry detail attribute. 返回几何细节属性的大小。
detailattribtype
Returns the type of a geometry detail attribute. 返回几何细节属性的类型。
detailattribtypeinfo
Returns the type info of a geometry attribute. 返回几何属性的类型信息。
detailintrinsic
Reads the value of a detail intrinsic from a geometry. 从几何图形中读取细节固有值。
findattribval
Finds a primitive/point/vertex that has a certain attribute value. 查找具有特定属性值的图元/点/顶点。
findattribvalcount
Returns number of elements where an integer or string attribute has a certain value. 返回整数或字符串属性具有特定值的元素数。
getattrib
Reads an attribute value from geometry, with validity check. 从几何图形读取属性值,并进行有效性检查。
getattribute
Copies the value of a geometry attribute into a variable and returns a success flag. 将几何属性的值复制到变量中并返回成功标志。
hasattrib
Checks whether a geometry attribute exists. 检查几何属性是否存在。
hasdetailattrib
Returns if a geometry detail attribute exists. 如果几何细节属性存在,则返回。
haspointattrib
Returns if a geometry point attribute exists. 如果几何点属性存在,则返回。
hasprimattrib
Returns if a geometry prim attribute exists. 返回几何主属性是否存在。
hasvertexattrib
Returns if a geometry vertex attribute exists. 如果几何顶点属性存在,则返回。
idtopoint
Finds a point by its id attribute. 通过点的id属性查找点。
idtoprim
Finds a primitive by its id attribute. 通过id属性查找图元。
nametopoint
Finds a point by its name attribute. 通过点的名称属性查找点。
nametoprim
Finds a primitive by its name attribute. 根据名称属性查找图元。
nuniqueval
Returns the number of unique values from an integer or string attribute. 返回整数或字符串属性中唯一值的数量。
point
Reads a point attribute value from a geometry. 从几何图形中读取点属性值。
pointattrib
Reads a point attribute value from a geometry and outputs a success/fail flag. 从几何图形中读取点属性值并输出成功/失败标志。
pointattribsize
Returns the size of a geometry point attribute. 返回几何点属性的大小。
pointattribtype
Returns the type of a geometry point attribute. 返回几何点属性的类型。
pointattribtypeinfo
Returns the type info of a geometry attribute. 返回几何属性的类型信息。
pointlocaltransforms
Returns an array of point localtransforms from an array of point indices. 从点索引数组返回点localtransforms数组。
pointtransform
Returns a point transform from a point index. 从点索引返回点变换。
pointtransformrigid
Returns a rigid point transform from a point index. 从点索引返回刚性点变换。
pointtransforms
Returns an array of point transforms from an array of point indices. 从点索引数组返回点变换数组。
pointtransformsrigid
Returns an array of rigid point transforms from an array of point indices. 从点索引数组返回刚性点转换数组。
prim
Reads a primitive attribute value from a geometry. 从几何图形中读取基本属性值。
prim_attribute
Interpolates the value of an attribute at a certain parametric (u, v) position and copies it into a variable. 在某个参数(u,v)位置插入属性值,并将其复制到变量中。
primarclen
Evaluates the length of an arc on a primitive defined by an array of points using parametric uv coordinates. 使用参数uv坐标计算由点数组定义的图元上的圆弧长度。
primarclen
Evaluates the length of an arc on a primitive using parametric uv coordinates. 使用参数uv坐标计算基本体上弧的长度。
primattrib
Reads a primitive attribute value from a geometry, outputting a success flag. 从几何图形中读取原始属性值,输出成功标志。
primattribsize
Returns the size of a geometry prim attribute. 返回几何主属性的大小。
primattribtype
Returns the type of a geometry prim attribute. 返回几何主属性的类型。
primattribtypeinfo
Returns the type info of a geometry attribute. 返回几何属性的类型信息。
primduv
Returns position derivative on a primitive at a certain parametric (u, v) position. 返回图元在某个参数(u,v)位置的位置导数。
primintrinsic
Reads a primitive intrinsic from a geometry. 从几何图形中读取一个本征图元。
primuv
Interpolates the value of an attribute at a certain parametric (uvw) position. 在某个参数(uvw)位置插入属性值。
primuvconvert
Convert parametric UV locations on curve primitives between different spaces. 在不同空间之间转换曲线图元上的参数UV位置。
setattrib
Writes an attribute value to geometry. 将属性值写入几何图形。
setattribtypeinfo
Sets the meaning of an attribute in geometry. 设置几何图形中属性的含义。
setdetailattrib
Sets a detail attribute in a geometry. 在几何图形中设置细节属性。
setdetailintrinsic
Sets the value of a writeable detail intrinsic attribute. 设置可写详细信息内在属性的值。
setpointattrib
Sets a point attribute in a geometry. 在几何图形中设置点属性。
setpointlocaltransforms
Sets an array of point local transforms at the given point indices. 在给定点索引处设置点局部变换数组。
setpointtransform
Sets the world space transform of a given point 设置给定点的世界空间变换
setpointtransforms
Sets an array of point transforms at the given point indices. 在给定点索引处设置点变换数组。
setprimattrib
Sets a primitive attribute in a geometry. 在几何体中设置基本属性。
setprimintrinsic
Sets the value of a writeable primitive intrinsic attribute. 设置可写基元内在属性的值。
setvertexattrib
Sets a vertex attribute in a geometry. 在几何体中设置顶点属性。
uniqueval
Returns one of the set of unique values across all values for an int or string attribute. 返回int或string属性的所有值中的一组唯一值。
uniquevals
Returns the set of unique values across all values for an int or string attribute. 返回跨int或string属性的所有值的唯一值集。
uvsample
Interpolates the value of an attribute at certain UV coordinates using a UV attribute. 使用UV属性在特定UV坐标处插值属性值。
vertex
Reads a vertex attribute value from a geometry. 从几何图形中读取顶点属性值。
vertexattrib
Reads a vertex attribute value from a geometry. 从几何图形中读取顶点属性值。
vertexattribsize
Returns the size of a geometry vertex attribute. 返回几何顶点属性的大小。
vertexattribtype
Returns the type of a geometry vertex attribute. 返回几何顶点属性的类型。
vertexattribtypeinfo
Returns the type info of a geometry attribute. 返回几何属性的类型信息。
BSDFS BSDFS
albedo
Returns the albedo (percentage of reflected light) for a bsdf given the outgoing light direction. 返回给定出射光方向的bsdf的反照率(反射光的百分比)。
ashikhmin
Returns a specular BSDF using the Ashikhmin shading model. 使用Ashikhmin着色模型返回镜面BSDF。
blinn
Returns a Blinn BSDF or computes Blinn shading. 返回一个布林BSDF或计算布林阴影。
cone
Returns a cone reflection BSDF. 返回圆锥反射BSDF。
cvex_bsdf
Creates a bsdf object from two CVEX shader strings. 从两个CVEX着色器字符串创建bsdf对象。
diffuse
Returns a diffuse BSDF or computes diffuse shading. 返回漫射BSDF或计算漫射明暗度。
eval_bsdf
Evaluates a bsdf given two vectors. 给定两个向量评估bsdf。
getbounces
ggx
Returns a ggx BSDF. 返回一个ggx BSDF。
hair
Returns a BSDF for shading hair. 返回用于头发着色的BSDF。
henyeygreenstein
Returns an anisotropic volumetric BSDF, which can scatter light forward or backward. 返回各向异性的体积BSDF,它可以向前或向后散射光线。
isotropic
Returns an isotropic BSDF, which scatters light equally in all directions. 返回一个各向同性的BSDF,它将光线均匀地散射到各个方向。
mask_bsdf
Returns new BSDF that only includes the components specified by the mask. 返回只包含掩码指定的组件的新BSDF。
normal_bsdf
Returns the normal for the diffuse component of a BSDF. 返回BSDF漫射组件的法线。
phong
Returns a Phong BSDF or computes Phong shading. 返回一个冯BSDF或计算冯阴影。
phonglobe
sample_bsdf
Samples a BSDF. BSDF的样品。
solid_angle
Computes the solid angle (in steradians) a BSDF function subtends. 计算BSDF函数对的立体角(球面度)。
split_bsdf
Splits a bsdf into its component lobes. 将bsdf分割成它的组成波瓣。
sssapprox
Creates an approximate SSS BSDF. 创建近似的SSS BSDF。
BSDFS BSDFS
specular
Returns a specular BSDF or computes specular shading. 返回镜面BSDF或计算镜面着色。
CHOP 砍
chadd
Adds new channels to a CHOP node. 向斩波节点添加新通道。
chattr
Reads from a CHOP attribute. 从CHOP属性中读取。
chattrnames
Reads CHOP attribute names of a given attribute class from a CHOP input. 从CHOP输入中读取给定属性类的CHOP属性名称。
chend
Returns the sample number of the last sample in a given CHOP input. 返回给定斩波输入中最后一个样本的样本号。
chendf
Returns the frame corresponding to the last sample of the input specified. 返回与指定输入的最后一个样本相对应的帧。
chendt
Returns the time corresponding to the last sample of the input specified. 返回与指定输入的最后一个样本相对应的时间。
chindex
Returns the channel index from a input given a channel name. 给定通道名称,从输入中返回通道索引。
chinput
Returns the value of a channel at the specified sample. 返回通道在指定样本处的值。
chinputlimits
Computes the minimum and maximum value of samples in an input channel. 计算输入通道中样本的最小值和最大值。
chnames
Returns all the CHOP channel names of a given CHOP input. 返回给定斩波输入的所有斩波通道名称。
chnumchan
Returns the number of channels in the input specified. 返回指定输入中的通道数。
chop
Returns the value of a CHOP channel at the specified sample. 返回指定采样点的斩波通道值。
choplocal
Returns the value of a CHOP local transform channel at the specified sample. 返回指定样本处斩波局部变换通道的值。
choplocalt
Returns the value of a CHOP local transform channel at the specified sample and evaluation time. 在指定的采样和评估时间返回斩波本地变换通道的值。
chopt
Returns the value of a CHOP channel at the specified sample and evaluation time. 在指定的采样和评估时间返回斩波通道的值。
chrate
Returns the sample rate of the input specified. 返回指定输入的采样率。
chreadbuf
Returns the value of CHOP context temporary buffer at the specified index. 返回指定索引处CHOP上下文临时缓冲区的值。
chremove
Removes channels from a CHOP node. 从斩波节点中移除通道。
chremoveattr
Removes a CHOP attribute. 移除CHOP属性。
chrename
Renames a CHOP channel. 重命名斩波通道。
chresizebuf
Resize the CHOP context temporary buffer 调整CHOP上下文临时缓冲区的大小
chsetattr
Sets the value of a CHOP attribute. 设置CHOP属性的值。
chsetlength
Sets the length of the CHOP channel data. 设置斩波通道数据的长度。
chsetrate
Sets the sampling rate of the CHOP channel data. 设置斩波通道数据的采样速率。
chsetstart
Sets the CHOP start sample in the channel data. 设置通道数据中的斩波开始采样。
chstart
Returns the start sample of the input specified. 返回指定输入的起始样本。
chstartf
Returns the frame corresponding to the first sample of the input specified. 返回与指定输入的第一个样本相对应的帧。
chstartt
Returns the time corresponding to the first sample of the input specified. 返回与指定输入的第一个样本相对应的时间。
chwritebuf
Writes a value of CHOP context temporary buffer at the specified index. 在指定索引处写入CHOP上下文临时缓冲区的值。
isframes
Returns 1 if the Vex CHOP’s Unit Menu is currently set to 'frames', 0 otherwise. 如果Vex CHOP的单位菜单当前设置为“帧”,则返回1,否则返回0。
issamples
Returns 1 if the Vex CHOP’s Unit Menu is currently set to 'samples', 0 otherwise. 如果Vex CHOP的单位菜单当前设置为“样本”,则返回1,否则返回0。
isseconds
Returns 1 if the Vex CHOP’s Unit Menu is currently set to 'seconds', 0 otherwise. 如果Vex CHOP的单位菜单当前设置为“秒”,则返回1;否则返回0。
ninputs
Returns the number of inputs. 返回输入的数量。
COLOR 颜色
blackbody
Compute the color value of an incandescent black body. 计算白炽黑体的颜色值。
ctransform
Transforms between color spaces. 色彩空间之间的转换。
luminance
Compute the luminance of the RGB color specified by the parameters. 计算由参数指定的RGB颜色的亮度。
CONVERSION 转换
atof
Converts a string to a float. 将字符串转换为浮点型。
atoi
Converts a string to an integer. 将字符串转换为整数。
cracktransform
Depending on the value of c, returns the translate (c=0), rotate (c=1), scale (c=2), or shears (c=3) component of the transform (xform). 根据c的值,返回变换(xform)的平移(c=0)、旋转(c=1)、缩放(c=2)或剪切(c=3)分量。
degrees
Converts the argument from radians into degrees. 将参数从弧度转换为角度。
eulertoquaternion
Creates a vector4 representing a quaternion from euler angles. 根据欧拉角创建表示四元数的矢量4。
hsvtorgb
Convert HSV color space into RGB color space. 将HSV颜色空间转换为RGB颜色空间。
qconvert
Converts a quaternion represented by a vector4 to a matrix3 representation. 将vector4表示的四元数转换为matrix3表示形式。
quaterniontoeuler
Creates a euler angle representing a quaternion. 创建表示四元数的欧拉角。
radians
Converts the argument from degrees into radians. 将参数从度转换为弧度。
rgbtohsv
Convert RGB color space to HSV color space. 将RGB颜色空间转换为HSV颜色空间。
rgbtoxyz
Convert a linear sRGB triplet to CIE XYZ tristimulus values. 将线性sRGB三色转换为CIE XYZ三色值。
serialize
Flattens an array of vector or matrix types into an array of floats. 将向量或矩阵类型的数组展平为浮点型数组。
unserialize
Turns a flat array of floats into an array of vectors or matrices. 将平面浮点数组转换为向量或矩阵数组。
xyztorgb
Convert CIE XYZ tristimulus values to a linear sRGB triplet. 将CIE XYZ三刺激值转换为线性sRGB三刺激值。
CROWDS 人群
agentaddclip
Add a clip into an agent’s definition. 将剪辑添加到代理的定义中。
agentchannelnames
Returns the names of the channels in an agent primitive’s rig. 返回代理原语装备中通道的名称。
agentchannelvalue
Returns the current value of an agent primitive’s channel. 返回代理原语通道的当前值。
agentchannelvalues
Returns the current values of an agent primitive’s channels. 返回代理原语通道的当前值。
agentclipcatalog
Returns all of the animation clips that have been loaded for an agent primitive. 返回为代理基本体加载的所有动画片段。
agentclipchannel
Finds the index of a channel in an agent’s animation clip. 在代理的动画片段中查找通道的索引。
agentclipchannelnames
Returns the names of the channels in an agent’s animation clip. 返回代理动画剪辑中通道的名称。
agentcliplength
Returns the length (in seconds) of an agent’s animation clip. 返回代理动画片段的长度(以秒为单位)。
agentclipnames
Returns an agent primitive’s current animation clips. 返回代理基本体的当前动画片段。
agentclipsample
Samples a channel of an agent’s clip at a specific time. 在特定时间对代理片段的通道进行采样。
agentclipsamplelocal
Samples an agent’s animation clip at a specific time. 在特定时间对代理的动画片段进行采样。
agentclipsamplerate
Returns the sample rate of an agent’s animation clip. 返回代理动画片段的采样率。
agentclipsampleworld
Samples an agent’s animation clip at a specific time. 在特定时间对代理的动画片段进行采样。
agentclipstarttime
Returns the start time (in seconds) of an agent’s animation clip. 返回代理动画片段的开始时间(秒)。
agentcliptimes
Returns the current times for an agent primitive’s animation clips. 返回代理基本体动画片段的当前时间。
agentcliptransformgroups
Returns the transform groups for an agent primitive’s current animation clips. 返回代理基本体的当前动画片段的变换组。
agentclipweights
Returns the blend weights for an agent primitive’s animation clips. 返回代理基本体动画片段的混合权重。
agentcollisionlayer
Returns the name of the collision layer of an agent primitive. 返回代理原语的碰撞层的名称。
agentcurrentlayer
Returns the name of the current layer of an agent primitive. 返回代理原语的当前层的名称。
agentfindtransformgroup
Finds the index of a transform group in an agent’s definition. 在代理定义中查找转换组的索引。
agentlayerbindings
Returns the transform that each shape in an agent’s layer is bound to. 返回代理层中每个形状绑定到的转换。
agentlayers
Returns all of the layers that have been loaded for an agent primitive. 返回为代理原语加载的所有层。
agentlayershapes
Returns the names of the shapes referenced by an agent primitive’s layer. 返回代理原语层引用的形状的名称。
agentlocaltransform
Returns the current local space transform of an agent primitive’s bone. 返回代理基本体骨骼的当前局部空间变换。
agentlocaltransforms
Returns the current local space transforms of an agent primitive. 返回代理原语的当前局部空间变换。
agentrigchildren
Returns the child transforms of a transform in an agent primitive’s rig. 返回代理基元装备中变换的子变换。
agentrigfind
Finds the index of a transform in an agent primitive’s rig. 在代理基本体的装备中查找变换的索引。
agentrigfindchannel
Finds the index of a channel in an agent primitive’s rig. 在代理原语的装备中查找通道的索引。
agentrigparent
Returns the parent transform of a transform in an agent primitive’s rig. 返回代理基元装备中变换的父变换。
agentsolvefbik
Applies a full-body inverse kinematics algorithm to an agent’s skeleton. 将全身反向运动学算法应用于代理的骨骼。
agenttransformcount
Returns the number of transforms in an agent primitive’s rig. 返回代理基元装备中的变换数。
agenttransformgroupmember
Returns whether a transform is a member of the specified transform group. 返回转换是否是指定转换组的成员。
agenttransformgroupmemberchannel
Returns whether a channel is a member of the specified transform group. 返回通道是否是指定转换组的成员。
agenttransformgroups
Returns the names of the transform groups in an agent’s definition. 返回代理定义中转换组的名称。
agenttransformgroupweight
Returns the weight of a member of the specified transform group. 返回指定变换组成员的权重。
agenttransformnames
Returns the name of each transform in an agent primitive’s rig. 返回代理基元装备中每个变换的名称。
agenttransformtolocal
Converts transforms from world space to local space for an agent primitive. 为代理原语将变换从世界空间转换到局部空间。
agenttransformtoworld
Converts transforms from local space to world space for an agent primitive. 为代理原语将变换从局部空间转换到世界空间。
agentworldtransform
Returns the current world space transform of an agent primitive’s bone. 返回代理基本体骨骼的当前世界空间变换。
agentworldtransforms
Returns the current world space transforms of an agent primitive. 返回代理基本体的当前世界空间变换。
setagentchannelvalue
Overrides the value of an agent primitive’s channel. 覆盖代理原语的通道值。
setagentchannelvalues
Overrides the values of an agent primitive’s channels. 覆盖代理原语的通道值。
setagentclipnames
Sets the current animation clips for an agent primitive. 为代理基本体设置当前动画剪辑。
setagentclips
Sets the animation clips that an agent should use to compute its transforms. 设置代理应该用来计算其变换的动画剪辑。
setagentcliptimes
Sets the current times for an agent primitive’s animation clips. 为代理基本体的动画片段设置当前时间。
setagentclipweights
Sets the blend weights for an agent primitive’s animation clips. 为代理基本体的动画片段设置混合权重。
setagentcollisionlayer
Sets the collision layer of an agent primitive. 设置代理原语的碰撞层。
setagentcurrentlayer
Sets the current layer of an agent primitive. 设置代理原语的当前层。
setagentlocaltransform
Overrides the local space transform of an agent primitive’s bone. 覆盖代理基本体骨骼的局部空间变换。
setagentlocaltransforms
Overrides the local space transforms of an agent primitive. 覆盖代理原语的局部空间变换。
setagentworldtransform
Overrides the world space transform of an agent primitive’s bone. 覆盖代理基本体骨骼的世界空间变换。
setagentworldtransforms
Overrides the world space transforms of an agent primitive. 覆盖代理基本体的世界空间变换。
DICT 词典
json_dumps
Converts a VEX dictionary into a JSON string. 将VEX字典转换为JSON字符串。
json_loads
Converts a JSON string into a VEX dictionary. 将JSON字符串转换为VEX字典。
keys
Returns all the keys in a dictionary. 返回字典中的所有键。
DISPLACE 取代
dimport
Reads a variable from the displacement shader for the surface. 从曲面的置换着色器中读取变量。
FILE I/O 文件输入输出
file_stat
Returns file system status for a given file. 返回给定文件的文件系统状态。
FILTER 过滤器
filter_remap
Computes an importance sample based on the given filter type and input uv. 基于给定的过滤器类型和输入uv计算重要性样本。
FUZZY LOGIC 模糊逻辑
fuzzify 模糊化
fuzzy_and 模糊和
fuzzy_defuzz_centroid 模糊形心
fuzzy_nand 模糊与非
fuzzy_nor 模糊nor
fuzzy_not 模糊_不
fuzzy_nxor 模糊_nxor
fuzzy_or 模糊或
fuzzy_xor 模糊异或
GEOMETRY 几何学
addpoint
Adds a point to the geometry. 向几何图形添加点。
addprim
Adds a primitive to the geometry. 将图元添加到几何图形中。
addvertex
Adds a vertex to a primitive in a geometry. 向几何图形中的图元添加顶点。
clip
Clip the line segment between p0 and p1. 剪辑p0和p1之间的线段。
expandedgegroup
geoself
Returns a handle to the current geometry. 返回当前几何图形的句柄。
geounwrap
Returns an oppath: string to unwrap the geometry in-place. 返回一个oppath: string以就地展开几何图形。
inedgegroup
Returns 1 if the edge specified by the point pair is in the group specified by the string. 如果点对指定的边在字符串指定的组中,则返回1。
intersect
This function computes the first intersection of a ray with geometry. 此函数计算射线与几何图形的第一个交点。
intersect_all
Computes all intersections of the specified ray with geometry. 计算指定光线与几何图形的所有交点。
minpos
Finds the closest position on the surface of a geometry. 查找几何图形表面上最近的位置。
nearpoint
Finds the closest point in a geometry. 查找几何图形中最近的点。
nearpoints
Finds the all the closest point in a geometry. 查找几何图形中所有最近的点。
nedgesgroup
Returns the number of edges in the group. 返回组中的边数。
neighbour
Returns the point number of the next point connected to a given point. 返回连接到给定点的下一个点的点编号。
neighbourcount
Returns the number of points that are connected to the specified point. 返回连接到指定点的点数。
neighbours
Returns an array of the point numbers of the neighbours of a point. 返回一个点的相邻点编号的数组。
npoints
Returns the number of points in the input or geometry file. 返回输入或几何文件中的点数。
nprimitives
Returns the number of primitives in the input or geometry file. 返回输入或几何文件中图元的数量。
nvertices
Returns the number of vertices in the input or geometry file. 返回输入或几何文件中的顶点数。
nverticesgroup
Returns the number of vertices in the group. 返回组中顶点的数量。
pointprims
Returns the list of primitives containing a point. 返回包含一个点的图元列表。
pointvertex
Returns a linear vertex number of a point in a geometry. 返回几何图形中点的线性顶点数。
pointvertices
Returns the list of vertices connected to a point. 返回连接到一个点的顶点列表。
polyneighbours
Returns an array of the primitive numbers of the edge-neighbours of a polygon. 返回多边形相邻边的图元数数组。
primfind
Returns a list of primitives potentially intersecting a given bounding box. 返回可能与给定边界框相交的图元列表。
primpoint
Converts a primitive/vertex pair into a point number. 将图元/顶点对转化为点数。
primpoints
Returns the list of points on a primitive. 返回图元上的点列表。
primvertex
Converts a primitive/vertex pair into a linear vertex. 将图元/顶点对转换为线性顶点。
primvertexcount
Returns number of vertices in a primitive in a geometry. 返回几何图形中图元的顶点数。
primvertices
Returns the list of vertices on a primitive. 返回图元上的顶点列表。
removepoint
Removes a point from the geometry. 从几何图形中删除点。
removeprim
Removes a primitive from the geometry. 从几何图形中删除图元。
removevertex
Removes a vertex from the geometry. 从几何图形中删除顶点。
setedgegroup
Sets edge group membership in a geometry. 在几何体中设置边组成员身份。
setprimvertex
Rewires a vertex in the geometry to a different point. 将几何图形中的顶点重新布线到不同的点。
setvertexpoint
Rewires a vertex in the geometry to a different point. 将几何图形中的顶点重新布线到不同的点。
uvintersect
This function computes the intersection of the specified ray with the geometry in uv space. 该函数计算指定光线与uv空间中几何体的交集。
vertexindex
Converts a primitive/vertex pair into a linear vertex. 将图元/顶点对转换为线性顶点。
vertexnext
Returns the linear vertex number of the next vertex sharing a point with a given vertex. 返回与给定顶点共享一个点的下一个顶点的线性顶点编号。
vertexpoint
Returns the point number of linear vertex in a geometry. 返回几何图形中线性顶点的点数。
vertexprev
Returns the linear vertex number of the previous vertex sharing a point with a given vertex. 返回与给定顶点共享一个点的前一个顶点的线性顶点编号。
vertexprim
Returns the number of the primitive containing a given vertex. 返回包含给定顶点的图元的编号。
vertexprimindex
Converts a linear vertex index into a primitive vertex number. 将线性顶点索引转换为图元顶点数。
GROUPS 组
expandpointgroup
Returns an array of point numbers corresponding to a group string. 返回对应于组字符串的点数数组。
expandprimgroup
Returns an array of prim numbers corresponding to a group string. 返回对应于一个组字符串的主数字数组。
expandvertexgroup
Returns an array of linear vertex numbers corresponding to a group string. 返回对应于组字符串的线性顶点数数组。
inpointgroup
Returns 1 if the point specified by the point number is in the group specified by the string. 如果点编号指定的点在字符串指定的组中,则返回1。
inprimgroup
Returns 1 if the primitive specified by the primitive number is in the group specified by the string. 如果基元号指定的基元在字符串指定的组中,则返回1。
invertexgroup
Returns 1 if the vertex specified by the vertex number is in the group specified by the string. 如果顶点编号指定的顶点在字符串指定的组中,则返回1。
npointsgroup
Returns the number of points in the group. 返回组中的点数。
nprimitivesgroup
Returns the number of primitives in the group. 返回组中图元的数量。
setpointgroup
Adds or removes a point to/from a group in a geometry. 在几何图形的组中添加或删除点。
setprimgroup
Adds or removes a primitive to/from a group in a geometry. 在几何图形的组中添加或删除图元。
setvertexgroup
Adds or removes a vertex to/from a group in a geometry. 在几何图形的组中添加或删除顶点。
HALF-EDGES 半边
hedge_dstpoint
Returns the destination point of a half-edge. 返回半边的目标点。
hedge_dstvertex
Returns the destination vertex of a half-edge. 返回半边的目标顶点。
hedge_equivcount
Returns the number of half-edges equivalent to a given half-edge. 返回等于给定半边的半边数。
hedge_isequiv
Determines whether a two half-edges are equivalent (represent the same edge). 确定两条半边是否相等(表示同一条边)。
hedge_isprimary
Determines whether a half-edge number corresponds to a primary half-edge. 确定半边数是否对应于主半边。
hedge_isvalid
Determines whether a half-edge number corresponds to a valid half-edge. 确定半边数是否对应于有效的半边。
hedge_next
Returns the half-edge that follows a given half-edge in its polygon. 返回多边形中给定半边之后的半边。
hedge_nextequiv
Returns the next half-edges equivalent to a given half-edge. 返回与给定半边相等的下一个半边。
hedge_postdstpoint
Returns the point into which the vertex following the destination vertex of a half-edge in its primitive is wired. 返回其图元中半边目标顶点之后的顶点连接到的点。
hedge_postdstvertex
Returns the vertex following the destination vertex of a half-edge in its primitive. 返回其图元中半边目标顶点之后的顶点。
hedge_presrcpoint
Returns the point into which the vertex that precedes the source vertex of a half-edge in its primitive is wired. 返回在其图元中半边的源顶点之前的顶点连接到的点。
hedge_presrcvertex
Returns the vertex that precedes the source vertex of a half-edge in its primitive. 返回在其图元中半边的源顶点之前的顶点。
hedge_prev
Returns the half-edge that precedes a given half-edge in its polygon. 返回多边形中给定半边之前的半边。
hedge_prim
Returns the primitive that contains a half-edge. 返回包含半边的图元。
hedge_primary
Returns the primary half-edge equivalent to a given half-edge. 返回等同于给定半边的主半边。
hedge_srcpoint
Returns the source point of a half-edge. 返回半边的源点。
hedge_srcvertex
Returns the source vertex of a half-edge. 返回半边的源顶点。
pointedge
Finds and returns a half-edge with the given endpoints. 查找并返回具有给定端点的半边。
pointhedge
Finds and returns a half-edge with a given source point or with given source and destination points. 查找并返回具有给定源点或给定源点和目标点的半边。
pointhedgenext
Returns the next half-edge with the same source as a given half-edge. 返回与给定半边具有相同源的下一个半边。
primhedge
Returns one of the half-edges contained in a primitive. 返回图元中包含的半边之一。
vertexhedge
Returns the half-edge which has a vertex as source. 返回以顶点为源的半边。
IMAGE PROCESSING 图像处理
accessframe
Tells the COP manager that you need access to the given frame. 告诉COP经理您需要访问给定的框架。
alphaname
Returns the default name of the alpha plane (as it appears in the compositor preferences). 返回alpha平面的默认名称(显示在合成器首选项中)。
binput
Samples a 2×2 pixel block around the given UV position, and bilinearly interpolates these pixels. 对给定UV位置周围的2×2像素块进行采样,并对这些像素进行双线性插值。
bumpname
Returns the default name of the bump plane (as it appears in the compositor preferences). 返回凹凸平面的默认名称(显示在合成器首选项中)。
chname
Returns the name of a numbered channel. 返回编号频道的名称。
cinput
Samples the exact (unfiltered) pixel color at the given coordinates. 在给定坐标处对精确的(未过滤的)像素颜色进行采样。
colorname
Returns the default name of the color plane (as it appears in the compositor preferences). 返回颜色平面的默认名称(如合成器首选项中所示)。
depthname
Returns the default name of the depth plane (as it appears in the compositor preferences). 返回深度平面的默认名称(显示在合成器首选项中)。
dsmpixel
Reads the z-records stored in a pixel of a deep shadow map or deep camera map. 读取存储在深阴影贴图或深相机贴图像素中的z记录。
finput
Returns fully filtered pixel input. 返回完全过滤的像素输入。
hasmetadata
Queries if metadata exists on a composite operator. 查询复合运算符上是否存在元数据。
hasplane
Returns 1 if the plane specified by the parameter exists in this COP. 如果参数指定的平面存在于此点云中,则返回1。
iaspect
Returns the aspect ratio of the specified input. 返回指定输入的纵横比。
ichname
Returns the channel name of the indexed plane of the given input. 返回给定输入的索引平面的通道名称。
iend
Returns the last frame of the specified input. 返回指定输入的最后一帧。
iendtime
Returns the end time of the specified input. 返回指定输入的结束时间。
ihasplane
Returns 1 if the specified input has a plane named planename. 如果指定输入有一个名为planename的平面,则返回1。
inumplanes
Returns the number of planes in the given input. 返回给定输入中的平面数量。
iplaneindex
Returns the index of the plane named 'planename' in the specified input. 返回指定输入中名为“planename”的平面的索引。
iplanename
Returns the name of the plane specified by the planeindex of the given input 返回由给定输入的planeindex指定的平面的名称
iplanesize
Returns the number of components in the plane named planename in the specified input. 返回指定输入中名为planename的平面中组件的数量。
irate
Returns the frame rate of the specified input. 返回指定输入的帧速率。
istart
Returns the starting frame of the specified input. 返回指定输入的起始帧。
istarttime
Returns the start time of the specified input. 返回指定输入的开始时间。
ixres
Returns the X resolution of the specified input. 返回指定输入的X分辨率。
iyres
Returns the Y resolution of the specified input. 返回指定输入的Y分辨率。
lumname
Returns the default name of the luminaence plane (as it appears in the compositor preferences). 返回照明平面的默认名称(如合成器首选项中所示)。
maskname
Returns the default name of the mask plane (as it appears in the compositor preferences). 返回遮罩平面的默认名称(显示在合成器首选项中)。
metadata
Returns a metadata value from a composite operator. 从复合运算符返回元数据值。
ninput
Reads a component from a pixel and its eight neighbors. 从一个像素及其八个相邻像素读取一个分量。
normalname
Returns the default name of the normal plane (as it appears in the compositor preferences). 返回法线平面的默认名称(如合成器首选项中所示)。
planeindex
Returns the index of the plane specified by the parameter, starting at zero. 返回由参数指定的平面的索引,从零开始。
planename
Returns the name of the plane specified by the index (e. 返回由索引指定的平面的名称(例如
planesize
Returns the number of components in the plane (1 for scalar planes and up to 4 for vector planes). 返回平面中组件的数量(标量平面为1,矢量平面最多为4)。
pointname
Returns the default name of the point plane (as it appears in the compositor preferences). 返回点平面的默认名称(显示在合成器首选项中)。
velocityname
Returns the default name of the velocity plane (as it appears in the compositor preferences). 返回速度平面的默认名称(如合成器首选项中所示)。
INTERPOLATION 插入文字
ckspline
Samples a Catmull-Rom (Cardinal) spline defined by position/value keys. 对由位置/值键定义的Catmull-Rom(基数)样条线进行采样。
clamp
Returns value clamped between min and max. 返回固定在最小值和最大值之间的值。
cspline
Samples a Catmull-Rom (Cardinal) spline defined by uniformly spaced keys. 对由均匀间隔的关键点定义的Catmull-Rom(基数)样条进行采样。
efit
Takes the value in one range and shifts it to the corresponding value in a new range. 获取一个范围内的值,并将其转换为新范围内的相应值。
fit
Takes the value in one range and shifts it to the corresponding value in a new range. 获取一个范围内的值,并将其转换为新范围内的相应值。
fit01
Takes the value in the range (0, 1) and shifts it to the corresponding value in a new range. 获取范围(0,1)中的值,并将其转换为新范围中的相应值。
fit10
Takes the value in the range (1, 0) and shifts it to the corresponding value in a new range. 获取范围(1,0)中的值,并将其转换为新范围中的相应值。
fit11
Takes the value in the range (-1, 1) and shifts it to the corresponding value in a new range. 获取范围(-1,1)中的值,并将其转换为新范围中的相应值。
invlerp
Inverses a linear interpolation between the values. 反转值之间的线性插值。
lerp
Performs linear interpolation between the values. 在值之间执行线性插值。
lkspline
Samples a polyline between the key points. 对关键点之间的多段线进行采样。
lspline
Samples a polyline defined by linearly spaced values. 对由线性间距值定义的多段线进行采样。
slerp
Quaternion blend between q1 and q2 based on the bias. 基于偏移的q1和q2之间的四元数混合。
smooth
Computes ease in/out interpolation between values. 计算值之间的缓入/缓出插值。
LIGHT 光
ambient
Returns the color of ambient light in the scene. 返回场景中环境光的颜色。
atten
Computes attenuated falloff. 计算衰减衰减。
fastshadow
Sends a ray from the position P along the direction specified by the direction D. 从位置P沿方向d指定的方向发送射线。
filtershadow
Sends a ray from the position P along direction D. 从位置P沿方向d发出一条射线。
MATH 数学
Du
Returns the derivative of the given value with respect to U. 返回给定值对u的导数。
Dv
Returns the derivative of the given value with respect to V. 返回给定值对v的导数。
Dw
Returns the derivative of the given value with respect to the 3rd axis (for volume rendering). 返回给定值相对于第三轴的导数(用于体绘制)。
abs
Returns the absolute value of the argument. 返回参数的绝对值。
acos
Returns the inverse cosine of the argument. 返回参数的反余弦值。
asin
Returns the inverse sine of the argument. 返回参数的反正弦值。
atan
Returns the inverse tangent of the argument. 返回参数的反正切值。
atan2
Returns the inverse tangent of y/x. 返回y/x的反正切值。
avg
Returns the average value of the input(s) 返回输入的平均值
cbrt
Returns the cube root of the argument. 返回参数的立方根。
ceil
Returns the smallest integer greater than or equal to the argument. 返回大于或等于参数的最小整数。
combinelocaltransform
Combines Local and Parent Transforms with Scale Inheritance. 将局部变换和父变换与缩放继承相结合。
cos
Returns the cosine of the argument. 返回参数的余弦值。
cosh
Returns the hyperbolic cosine of the argument. 返回参数的双曲余弦值。
cross
Returns the cross product between the two vectors. 返回两个向量的叉积。
determinant
Computes the determinant of the matrix. 计算矩阵的行列式。
diagonalizesymmetric
Diagonalizes Symmetric Matrices. 对角化对称矩阵。
dot
Returns the dot product between the arguments. 返回参数之间的点积。
eigenvalues
Computes the eigenvalues of a 3×3 matrix. 计算3×3矩阵的特征值。
erf
Gauss error function. 高斯误差函数。
erf_inv
Inverse Gauss error function. 逆高斯误差函数。
erfc
Gauss error function’s complement. 高斯误差函数的补码。
exp
Returns the exponential function of the argument. 返回参数的指数函数。
extractlocaltransform
Extracts Local Transform from a World Transform with Scale Inheritance. 从具有比例继承的世界变换中提取局部变换。
floor
Returns the largest integer less than or equal to the argument. 返回小于或等于参数的最大整数。
frac
Returns the fractional component of the floating point number. 返回浮点数的小数部分。
ident
Returns an identity matrix. 返回一个单位矩阵。
invert
Inverts a matrix. 反转矩阵。
isfinite
Checks whether a value is a normal finite number. 检查一个值是否是正常的有限数。
isnan
Checks whether a value is not a number. 检查值是否不是数字。
kspline
Returns an interpolated value along a curve defined by a basis and key/position pairs. 沿着由基和键/位置对定义的曲线返回插值。
length
Returns the magnitude of a vector. 返回向量的大小。
length2
Returns the squared distance of the vector or vector4. 返回vector或vector4的平方距离。
log
Returns the natural logarithm of the argument. 返回参数的自然对数。
log10
Returns the logarithm (base 10) of the argument. 返回参数的对数(以10为底)。
makebasis
Creates an orthonormal basis given a z-axis vector. 给定z轴向量,创建正交基。
max
min
normalize
Returns a normalized vector. 返回一个规范化向量。
outerproduct
Returns the outer product between the arguments. 返回参数之间的外积。
planesphereintersect
Computes the intersection of a 3D sphere and an infinite 3D plane. 计算三维球体和无限三维平面的交集。
pow
Raises the first argument to the power of the second argument. 将第一个参数提升到第二个参数的幂。
predicate_incircle
Determines if a point is inside or outside a triangle circumcircle. 确定一个点是在三角形外接圆的内部还是外部。
predicate_insphere
Determines if a point is inside or outside a tetrahedron circumsphere. 确定一个点是在四面体外接圆的内部还是外部。
predicate_orient2d
Determines the orientation of a point with respect to a line. 确定点相对于线的方向。
predicate_orient3d
Determines the orientation of a point with respect to a plane. 确定点相对于平面的方向。
premul
Pre multiply matrices. 预乘矩阵。
product
Returns the product of a list of numbers. 返回数字列表的乘积。
ptlined
This function returns the closest distance between the point Q and a finite line segment between points P0 and P1. 该函数返回点Q与点P0和P1之间的有限线段之间的最近距离。
qdistance
Finds distance between two quaternions. 查找两个四元数之间的距离。
qinvert
Inverts a quaternion rotation. 反转四元数旋转。
qmultiply
Multiplies two quaternions and returns the result. 将两个四元数相乘并返回结果。
qrotate
Rotates a vector by a quaternion. 按四元数旋转向量。
quaternion
Creates a vector4 representing a quaternion. 创建表示四元数的vector4。
resample_linear
rint
Rounds the number to the closest whole number. 将数字舍入到最接近的整数。
shl
Bit-shifts an integer left. 左移一个整数。
shr
Bit-shifts an integer right. 将整数右移一位。
shrz
Bit-shifts an integer right. 将整数右移一位。
sign
Returns -1, 0, or 1 depending on the sign of the argument. 根据参数的符号返回-1、0或1。
sin
Returns the sine of the argument. 返回参数的正弦值。
sinh
Returns the hyperbolic sine of the argument. 返回参数的双曲正弦值。
slideframe
Finds the normal component of frame slid along a curve. 查找沿曲线滑动的帧的法向分量。
solvecubic
Solves a cubic function returning the number of real roots. 求解一个返回实根数的三次函数。
solvepoly
Finds the real roots of a polynomial. 求多项式的实根。
solvequadratic
Solves a quadratic function returning the number of real roots. 求解一个返回实数根的二次函数。
solvetriangleSSS
Finds the angles of a triangle from its sides. 求三角形各边的角。
spline
Samples a value along a polyline or spline curve. 沿多段线或样条曲线采样值。
spline_cdf
Generate a cumulative distribution function (CDF) by sampling a spline curve. 通过采样样条曲线生成累积分布函数(CDF)。
sqrt
Returns the square root of the argument. 返回参数的平方根。
sum
Returns the sum of a list of numbers. 返回一系列数字的总和。
svddecomp
Computes the singular value decomposition of a 3×3 matrix. 计算3×3矩阵的奇异值分解。
tan
Returns the trigonometric tangent of the argument 返回参数的三角正切值
tanh
Returns the hyperbolic tangent of the argument 返回参数的双曲正切值
transpose
Transposes the given matrix. 转置给定的矩阵。
trunc
Removes the fractional part of a floating point number. 移除浮点数的小数部分。
MEASURE 测量
distance
Returns the distance between two points. 返回两点之间的距离。
distance2
Returns the squared distance between the two points. 返回两点之间的平方距离。
getbbox
Sets two vectors to the minimum and maximum corners of the bounding box for the geometry. 将两个向量设置为几何图形边界框的最小和最大角。
getbbox_center
Returns the center of the bounding box for the geometry. 返回几何图形边界框的中心。
getbbox_max
Returns the maximum of the bounding box for the geometry. 返回几何图形边界框的最大值。
getbbox_min
Returns the minimum of the bounding box for the geometry. 返回几何图形边界框的最小值。
getbbox_size
Returns the size of the bounding box for the geometry. 返回几何图形边界框的大小。
getbounds
Returns the bounding box of the geometry specified by the filename. 返回由文件名指定的几何图形的边界框。
getpointbbox
Sets two vectors to the minimum and maximum corners of the bounding box for the geometry. 将两个向量设置为几何图形边界框的最小和最大角。
getpointbbox_center
Returns the center of the bounding box for the geometry. 返回几何图形边界框的中心。
getpointbbox_max
Returns the maximum of the bounding box for the geometry. 返回几何图形边界框的最大值。
getpointbbox_min
Returns the minimum of the bounding box for the geometry. 返回几何图形边界框的最小值。
getpointbbox_size
Returns the size of the bounding box for the geometry. 返回几何图形边界框的大小。
planepointdistance
Computes the distance and closest point of a point to an infinite plane. 计算点到无限平面的距离和最近点。
relbbox
Returns the relative position of the point given with respect to the bounding box of the geometry. 返回给定点相对于几何图形边界框的相对位置。
relpointbbox
Returns the relative position of the point given with respect to the bounding box of the geometry. 返回给定点相对于几何图形边界框的相对位置。
surfacedist
Finds the distance of a point to a group of points along the surface of a geometry. 沿几何图形表面查找一个点到一组点的距离。
uvdist
Finds the distance of a uv coordinate to a geometry in uv space. 查找uv坐标到uv空间中几何体的距离。
xyzdist
Finds the distance of a point to a geometry. 查找点到几何图形的距离。
METABALL 元球
metaimport
Once you get a handle to a metaball using metastart and metanext, you can query attributes of the metaball with metaimport. 使用metastart和metanext获得元球的句柄后,可以使用metaimport查询元球的属性。
metamarch
Takes the ray defined by p0 and p1 and partitions it into zero or more sub-intervals where each interval intersects a cluster of metaballs from filename. 获取由p0和p1定义的光线,并将其划分为零个或多个子间隔,其中每个间隔与来自文件名的一簇元球相交。
metanext
Iterate to the next metaball in the list of metaballs returned by the metastart() function. 迭代到metastart()函数返回的元球列表中的下一个元球。
metastart
Open a geometry file and return a "handle" for the metaballs of interest, at the position p. 打开一个几何文件,并在位置p处返回感兴趣的元球的“句柄”
metaweight
Returns the metaweight of the geometry at position p. 返回位置p处几何的元权重。
NODES 节点
addvariablename
Adds a mapping for an attribute to a local variable. 将属性映射添加到局部变量。
ch
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
ch2
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
ch3
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
ch4
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
chdict
Evaluates a key-value dictionary parameter and return its value. 评估键值字典参数并返回其值。
chexpr
Evaluates a channel with a new segment expression. 用新的段表达式计算通道。
chexprf
Evaluates a channel with a new segment expression at a given frame. 在给定帧用新的分段表达式计算通道。
chexprt
Evaluates a channel with a new segment expression at a given time. 在给定时间用新的段表达式计算通道。
chf
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
chi
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
chid
Resolves a channel string (or parameter) and return op_id, parm_index and vector_index. 解析通道字符串(或参数)并返回op_id、parm_index和vector_index。
chp
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
chramp
Evaluates a ramp parameter and return its value. 评估斜坡参数并返回其值。
chrampderiv
Evaluates the derivative of a parm parameter with respect to position. 计算parm参数相对于位置的导数。
chs
Evaluates a channel (or parameter) and return its value. 评估通道(或参数)并返回其值。
chsop
Evaluates an operator path parameter and return the path to the operator. 计算运算符路径参数并将路径返回给运算符。
chsraw
Returns the raw string channel (or parameter). 返回原始字符串通道(或参数)。
chu
Evaluates a channel or parameter, and return its value. 评估通道或参数,并返回其值。
chv
Evaluates a channel or parameter, and return its value. 评估通道或参数,并返回其值。
cregioncapturetransform
Returns the capture transform associated with a Capture Region SOP. 返回与捕获区域SOP相关联的捕获转换。
cregiondeformtransform
Returns the deform transform associated with a Capture Region SOP. 返回与捕获区域SOP关联的变形变换。
cregionoverridetransform
Returns the capture or deform transform associated with a Capture Region SOP based on the global capture override flag. 基于全局捕获覆盖标志返回与捕获区域SOP相关联的捕获或变形变换。
isconnected
Returns 1 if input_number is connected, or 0 if the input is not connected. 如果input_number已连接,则返回1;如果输入未连接,则返回0。
opfullpath
Returns the full path for the given relative path 返回给定相对路径的完整路径
opid
Resolves an operator path string and return its op_id. 解析运算符路径字符串并返回其op_id。
opparentbonetransform
Returns the parent bone transform associated with an OP. 返回与某个操作相关联的父骨骼变换。
opparenttransform
Returns the parent transform associated with an OP. 返回与操作相关联的父转换。
opparmtransform
Returns the parm transform associated with an OP. 返回与操作相关联的参数转换。
oppreconstrainttransform
Returns the preconstraint transform associated with an OP. 返回与操作相关联的预约束转换。
oppreparmtransform
Returns the pre and parm transform associated with an OP. 返回与操作相关联的预转换和参数转换。
opprerawparmtransform
Returns the pre and raw parm transform associated with an OP. 返回与操作相关联的预参数和原始参数转换。
oppretransform
Returns the pretransform associated with an OP. 返回与操作相关联的预转换。
oprawparmtransform
Returns the raw parm transform associated with an OP. 返回与操作相关联的原始参数转换。
optransform
Returns the transform associated with an OP. 返回与操作相关联的转换。
NOISE AND RANDOMNESS 噪音和随机性
anoise
Generates "alligator" noise. 产生“鳄鱼”噪声。
curlnoise
Computes divergence free noise based on Perlin noise. 基于柏林噪声计算无发散噪声。
curlnoise2d
Computes 2d divergence free noise based on Perlin noise. 基于柏林噪波计算2d无发散噪波。
curlxnoise
Computes divergence free noise based on Simplex noise. 基于单纯形噪波计算无发散噪波。
curlxnoise2d
Computes 2d divergence free noise based on simplex noise. 基于简单噪波计算二维无发散噪波。
cwnoise
Generates Worley (cellular) noise using a Chebyshev distance metric. 使用切比雪夫距离度量生成沃利(蜂窝)噪声。
flownoise
Generates 1D and 3D Perlin Flow Noise from 3D and 4D data. 从3D和4D数据生成1D和3D柏林流动噪声。
flowpnoise
There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space. 柏林式噪声有两种形式:在N维空间中随机变化的非周期性噪声,以及在给定空间范围内重复的周期性噪声。
hscript_noise
Generates noise matching the output of the Hscript noise() expression function. 生成与Hscript noise()表达式函数的输出相匹配的噪声。
hscript_rand
Produces the exact same results as the Houdini expression function of the same name. 产生与同名的Houdini表达式函数完全相同的结果。
hscript_snoise
hscript_sturb
hscript_turb
Generates turbulence matching the output of the HScript turb() expression function. 生成与HScript turb()表达式函数的输出相匹配的湍流。
mwnoise
Generates Worley (cellular) noise using a Manhattan distance metric. 使用曼哈顿距离度量生成Worley(蜂窝)噪声。
noise
There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space. 柏林式噪声有两种形式:在N维空间中随机变化的非周期性噪声,以及在给定空间范围内重复的周期性噪声。
noised
Derivatives of Perlin Noise. 柏林噪声的导数。
nrandom
Non-deterministic random number generation function. 非确定性随机数生成函数。
onoise
These functions are similar to wnoise and vnoise. 这些函数类似于wnoise和vnoise。
pnoise
There are two forms of Perlin-style noise: a non-periodic noise which changes randomly throughout N-dimensional space, and a periodic form which repeats over a given range of space. 柏林式噪声有两种形式:在N维空间中随机变化的非周期性噪声,以及在给定空间范围内重复的周期性噪声。
pxnoised
Periodic derivatives of Simplex Noise. 单工噪声的周期导数。
rand
Creates a random number between 0 and 1 from a seed. 从种子创建一个0到1之间的随机数。
random
Generate a random number based on the position in 1-4D space. 基于1-4D空间中的位置生成一个随机数。
random_brj
Generate a uniformly distributed random number. 生成一个均匀分布的随机数。
random_fhash
Hashes floating point numbers to integers. 将浮点数散列为整数。
random_ihash
Hashes integer numbers to integers. 将整数哈希为整数。
random_poisson
Generates a random Poisson variable given the mean to the distribution and a seed. 给定分布平均值和一个种子,生成一个随机泊松变量。
random_shash
Hashes a string to an integer. 将字符串哈希为整数。
random_sobol
Generate a uniformly distributed random number. 生成一个均匀分布的随机数。
snoise
These functions are similar to wnoise. 这些函数类似于wnoise。
vnoise
Generates Voronoi (cellular) noise. 生成Voronoi(蜂窝)噪声。
wnoise
Generates Worley (cellular) noise. 产生Worley(蜂窝)噪声。
xnoise
Simplex noise is very close to Perlin noise, except with the samples on a simplex mesh rather than a grid. This results in less grid artifacts. It also uses a higher order bspline to provide better derivatives. This is the periodic simplex noise 单纯形噪声非常接近柏林噪声,除了在单纯形网格而不是网格上采样。这导致更少的网格伪影。它还使用更高阶的b样条来提供更好的导数。这是周期性单工噪声
xnoise
Simplex noise is very close to Perlin noise, except with the samples on a simplex mesh rather than a grid. This results in less grid artifacts. It also uses a higher order bspline to provide better derivatives. 单纯形噪声非常接近柏林噪声,除了在单纯形网格而不是网格上采样。这导致更少的网格伪影。它还使用更高阶的b样条来提供更好的导数。
xnoised
Derivatives of Simplex Noise. 单工噪声的导数。
NORMALS 法线
computenormal
In shading contexts, computes a normal. In the SOP contexts, sets how/whether to recompute normals. 在着色上下文中,计算法线。在SOP上下文中,设置如何/是否重新计算法线。
prim_normal
Returns the normal of the primitive (prim_number) at parametric location u, v. 返回图元(prim_number)在参数位置u,v的法线。
OPEN COLOR IO 打开彩色IO
ocio_activedisplays
Returns the names of active displays supported in Open Color IO 返回Open Color IO中支持的活动显示器的名称
ocio_activeviews
Returns the names of active views supported in Open Color IO 返回开放颜色IO中支持的活动视图的名称
ocio_import
Imports attributes from OpenColorIO spaces. 从OpenColorIO空间导入属性。
ocio_roles
Returns the names of roles supported in Open Color IO 返回开放颜色IO中支持的角色名称
ocio_spaces
Returns the names of color spaces supported in Open Color IO. 返回Open Color IO中支持的色彩空间的名称。
ocio_transform
Parse the color space from a string 从字符串解析颜色空间
ocio_transform
Transform colors using Open Color IO 使用开放颜色IO变换颜色
PARTICLES 微粒
filamentsample
Samples the velocity field defined by a set of vortex filaments. 对一组涡丝定义的速度场进行采样。
POINT CLOUDS AND 3D IMAGES 点云和3D图像
mattrib
Returns the value of the point attribute for the metaballs if metaball geometry is specified to i3dgen. 如果将元球几何体指定为i3dgen,则返回元球的点属性值。
mdensity
Returns the density of the metaball field if metaball geometry is specified to i3dgen. 如果元球几何体指定为i3dgen,则返回元球场的密度。
mspace
Transforms the position specified into the "local" space of the metaball. 将指定的位置变换到元球的“局部”空间。
pcclose
This function closes the handle associated with a pcopen function. 该函数关闭与pcopen函数相关的句柄。
pccone
Returns a list of closest points from a file within a specified cone. 返回指定圆锥内文件的最近点列表。
pccone_radius
Returns a list of closest points from a file in a cone, taking into account their radii 从圆锥中的文件返回最近点列表,并考虑它们的半径
pcconvex
pcexport
Writes data to a point cloud inside a pciterate or a pcunshaded loop. 将数据写入pciterate或pcunshaded循环内的点云。
pcfarthest
Returns the distance to the farthest point found in the search performed by pcopen. 返回在pcopen执行的搜索中找到的最远点的距离。
pcfilter
Filters points found by pcopen using a simple reconstruction filter. 使用简单的重建过滤器过滤pcopen找到的点。
pcfind
Returns a list of closest points from a file. 返回文件中最近点的列表。
pcfind_radius
Returns a list of closest points from a file taking into account their radii. 返回文件中最近点的列表,并考虑它们的半径。
pcgenerate
Generates a point cloud. 生成点云。
pcimport
Imports channel data from a point cloud inside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环内的点云导入通道数据。
pcimportbyidx3
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidx4
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidxf
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidxi
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidxp
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidxs
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pcimportbyidxv
Imports channel data from a point cloud outside a pciterate or a pcunshaded loop. 从pciterate或pcunshaded循环外部的点云导入通道数据。
pciterate
This function can be used to iterate over all the points which were found in the pcopen query. 该函数可用于迭代在pcopen查询中找到的所有点。
pcline
Returns a list of closest points to an infinite line from a specified file 返回指定文件中距离无限长直线最近的点的列表
pcline_radius
Returns a list of closest points to an infinite line from a specified file 返回指定文件中距离无限长直线最近的点的列表
pcnumfound
This node returns the number of points found by pcopen. 该节点返回pcopen找到的点数。
pcopen
Returns a handle to a point cloud file. 返回点云文件的句柄。
pcopenlod
Returns a handle to a point cloud file. 返回点云文件的句柄。
pcsampleleaf
Changes the current iteration point to a leaf descendant of the current aggregate point. 将当前迭代点更改为当前聚合点的叶后代。
pcsegment
Returns a list of closest points to a line segment from a specified file 返回指定文件中距离线段最近的点的列表
pcsegment_radius
Returns a list of closest points to a line segment from a specified file 返回指定文件中距离线段最近的点的列表
pcsize
pcunshaded
Iterate over all of the points of a read-write channel which haven’t had any data written to the channel yet. 迭代读写通道中尚未写入任何数据的所有点。
pcwrite
Writes data to a point cloud file. 将数据写入点云文件。
pgfind
Returns a list of closest points from a file. 返回文件中最近点的列表。
photonmap
Samples a color from a photon map. 从光子贴图中采样颜色。
texture3d
Returns the value of the 3d image at the position specified by P. 返回3d图像在p指定位置的值。
texture3dBox
This function queries the 3D texture map specified and returns the bounding box information of the file. 该函数查询指定的3D纹理贴图并返回文件的边界框信息。
SAMPLING 抽样
create_cdf
Creates a cumulative distribution function (CDF) from an array of probability density function (PDF) values. 从概率密度函数(PDF)值数组创建累积分布函数(CDF)。
create_pdf
Creates a probability density function from an array of input values. 根据输入值数组创建概率密度函数。
limit_sample_space
Limits a unit value in a way that maintains uniformity and in-range consistency. 以保持一致性和范围内一致性的方式限制单位值。
newsampler
Initializes a sampling sequence for the nextsample function. 初始化nextsample函数的采样序列。
nextsample
sample_cauchy
Samples the Cauchy (Lorentz) distribution. 对柯西(洛伦兹)分布进行采样。
sample_cdf
Samples a cumulative distribution function (CDF). 对累积分布函数(CDF)进行采样。
sample_circle_arc
Generates a uniform unit vector2, within maxangle of center, given a uniform number between 0 and 1. 给定一个介于0和1之间的统一数字,在中心的最大角度范围内生成统一的单位向量2。
sample_circle_edge_uniform
Generates a uniform unit vector2, given a uniform number between 0 and 1. 给定0和1之间的统一数字,生成统一单位向量2。
sample_circle_ring_uniform
Generates a uniform vector2 with alpha < length < 1, where 0 < alpha < 1, given a vector2 of uniform numbers between 0 and 1. 给定一个由0到1之间的均匀数字组成的向量2,生成alpha《length《1的均匀向量2,其中0《alpha《1。
sample_circle_slice
Generates a uniform vector2 with length < 1, within maxangle of center, given a vector2 of uniform numbers between 0 and 1. 给定一个0到1之间的均匀数字的向量2,在中心的最大角度范围内生成长度《1的均匀向量2。
sample_circle_uniform
Generates a uniform vector2 with length < 1, given a vector2 of uniform numbers between 0 and 1. 给定0和1之间的均匀数字的向量2,生成长度《1的均匀向量2。
sample_direction_cone
Generates a uniform unit vector, within maxangle of center, given a vector2 of uniform numbers between 0 and 1. 给定0和1之间的统一数字的向量2,在中心的最大角度范围内生成统一单位向量。
sample_direction_uniform
Generates a uniform unit vector, given a vector2 of uniform numbers between 0 and 1. 给定0和1之间的统一数字的向量2,生成统一单位向量。
sample_discrete
Returns an integer, either uniform or weighted, given a uniform number between 0 and 1. 给定一个介于0和1之间的统一数字,返回一个统一或加权的整数。
sample_exponential
Samples the exponential distribution. 对指数分布进行采样。
sample_geometry
Samples geometry in the scene and returns information from the shaders of surfaces that were sampled. 对场景中的几何体进行采样,并从采样曲面的着色器中返回信息。
sample_hemisphere
Generates a unit vector, optionally biased, within a hemisphere, given a vector2 of uniform numbers between 0 and 1. 给定0和1之间的均匀数字的向量2,在半球内生成单位向量(可以有偏差)。
sample_hypersphere_cone
Generates a uniform vector4 with length < 1, within maxangle of center, given a vector4 of uniform numbers between 0 and 1. 给定一个0到1之间的均匀数字的向量4,在中心的最大角度范围内生成长度《1的均匀向量4。
sample_hypersphere_uniform
Generates a uniform vector4 with length < 1, given a vector4 of uniform numbers between 0 and 1. 给定0和1之间的均匀数字的向量4,生成长度《1的均匀向量4。
sample_light
Samples a 3D position on a light source and runs the light shader at that point. 对光源上的3D位置进行采样,并在该点运行灯光着色器。
sample_lognormal
Samples the log-normal distribution based on parameters of the underlying normal distribution. 基于基础正态分布的参数对对数正态分布进行采样。
sample_lognormal_by_median
Samples the log-normal distribution based on median and standard deviation. 基于中位数和标准差对对数正态分布进行采样。
sample_normal
Samples the normal (Gaussian) distribution. 对正态(高斯)分布进行采样。
sample_orientation_cone
Generates a uniform unit vector4, within maxangle of center, given a vector of uniform numbers between 0 and 1. 给定一个0到1之间的均匀数字向量,在中心的最大角度范围内生成一个均匀单位向量4。
sample_orientation_uniform
Generates a uniform unit vector4, given a vector of uniform numbers between 0 and 1. 给定0和1之间的统一数字向量,生成统一单位向量4。
sample_photon
Samples a 3D position on a light source and runs the light shader at that point. 对光源上的3D位置进行采样,并在该点运行灯光着色器。
sample_sphere_cone
Generates a uniform vector with length < 1, within maxangle of center, given a vector of uniform numbers between 0 and 1. 给定一个0到1之间的均匀数字向量,生成一个长度《1的均匀向量,该向量在中心的最大角度范围内。
sample_sphere_shell_uniform
Generates a uniform vector with alpha < length < 1, where 0 < alpha < 1, given a vector of uniform numbers between 0 and 1. 给定一个由0和1之间的均匀数字组成的向量,生成一个alpha《length《1的均匀向量,其中0《alpha《1。
sample_sphere_uniform
Generates a uniform vector with length < 1, given a vector of uniform numbers between 0 and 1. 给定一个0到1之间的均匀数字向量,生成一个长度《1的均匀向量。
sampledisk
Warps uniform random samples to a disk. 将均匀随机样本扭曲到圆盘上。
variance
Computes the mean value and variance for a value. 计算一个值的平均值和方差。
SENSOR INPUT 传感器输入
sensor_panorama_create
Sensor function to render GL scene and query the result. 渲染GL场景并查询结果的传感器函数。
sensor_panorama_getcolor
Sensor function query a rendered GL scene. 传感器功能查询渲染的GL场景。
sensor_panorama_getcone
Sensor function to query average values from rendered GL scene. 从渲染的GL场景中查询平均值的传感器功能。
sensor_panorama_getdepth
Sensor function query a rendered GL scene. 传感器功能查询渲染的GL场景。
sensor_save
Sensor function to save a rendered GL scene. 保存渲染的GL场景的传感器功能。
SHADING AND RENDERING 着色和渲染
area
Returns the area of the micropolygon containing a variable such as P. 返回包含变量(如p)的微多边形的面积。
blinnBRDF
bouncelabel
bouncemask
diffuseBRDF
filterstep
Returns the anti-aliased weight of the step function. 返回步骤函数的抗锯齿权重。
fresnel
Computes the fresnel reflection/refraction contributions given an incoming vector, surface normal (both normalized), and an index of refraction (eta). 给定传入向量、曲面法线(均已规格化)和折射率(eta),计算菲涅耳反射/折射贡献。
frontface
If dot(I, Nref) is less than zero, N will be negated. 如果dot(I,Nref)小于零,N将被求反。
gather
Sends rays into the scene and returns information from the shaders of surfaces hit by the rays. 将光线发送到场景中,并从光线照射的曲面的着色器中返回信息。
getblurP
Returns the blurred point position (P) vector at a fractional time within the motion blur exposure. 返回运动模糊曝光中某个分数时间的模糊点位置(P)向量。
getcomponents
getderiv
Evaluates surface derivatives of an attribute. 计算属性的曲面导数。
getfogname
Returns the name of the current object whose shader is being run. 返回正在运行着色器的当前对象的名称。
getglobalraylevel
Returns the depth of the ray tree for computing global illumination. 返回用于计算全局照明的光线树的深度。
getgroupid
Returns group id containing current primitive. 返回包含当前原语的组id。
getlight
Returns a light struct for the specified light identifier. 返回指定光源标识符的光源结构。
getlightid
Returns the light id for a named light (or -1 for an invalid name). 返回命名光源的光源id(或-1表示无效名称)。
getlightname
Returns the name of the current light when called from within an illuminance loop, or converts an integer light ID into the light’s name. 从照度循环中调用时返回当前灯光的名称,或将整数灯光ID转换为灯光的名称。
getlights
Returns an array of light identifiers for the currently shaded surface. 返回当前着色表面的光线标识符数组。
getlightscope
Returns a selection of lights that illuminate a given material. 返回照亮给定材质的灯光选择。
getlocalcurvature
Evaluates local curvature of primitive grid, using the same curvature evaluation method as Measure SOPs. 评估原始网格的局部曲率,使用与测量SOPs相同的曲率评估方法。
getmaterial
Returns a material struct for the current surface. 返回当前图面的材质结构。
getmaterialid
Returns material id of shaded primitive. 返回着色图元的材质id。
getobjectid
Returns the object id for the current shading context. 返回当前着色上下文的对象id。
getobjectname
Returns the name of the current object whose shader is being run. 返回正在运行着色器的当前对象的名称。
getphotonlight
Returns the integer ID of the light being used for photon shading. 返回用于光子着色的光线的整数ID。
getprimid
Returns the number of the current primitive. 返回当前图元的编号。
getptextureid
Returns the ptexture face id for the current primitive. 返回当前图元的ptexture face id。
getraylevel
Returns the depth of the ray tree for the current shading. 返回当前阴影的光线树深度。
getrayweight
Returns an approximation to the contribution of the ray to the final pixel color. 返回光线对最终像素颜色贡献的近似值。
getsamplestore
Looks up sample data in a channel, referenced by a point. 在由点引用的通道中查找样本数据。
getscope
Returns a selection of objects visible to rays for a given material. 返回给定材质的射线可见对象的选择。
getsmoothP
Returns modified surface position based on a smoothing function. 基于平滑函数返回修改后的表面位置。
getuvtangents
Evaluates UV tangents at a point on an arbitrary object. 计算任意对象上一点的UV切线。
gradient
Returns the gradient of a field. 返回字段的渐变。
haslight
Returns whether a light illuminates the given material. 返回光线是否照亮了给定的材料。
illuminance
Loops through all light sources in the scene, calling the light shader for each light source to set the Cl and L global variables. 循环遍历场景中的所有光源,调用每个光源的灯光着色器来设置Cl和L全局变量。
interpolate
Interpolates a value across the currently shaded micropolygon. 在当前着色的微多边形中插入一个值。
intersect_lights
Finds the nearest intersection of a ray with any of a list of (area) lights and runs the light shader at the intersection point. 查找光线与任何(区域)灯光列表的最近交点,并在交点处运行灯光着色器。
irradiance
Computes irradiance (global illumination) at the point P with the normal N. 使用法线n计算点P处的辐照度(全局照明)
isfogray
Returns 1 if the shader is being called to evaluate illumination for fog objects, or 0 if the light or shadow shader is being called to evaluate surface illumination. 如果调用着色器来计算雾对象的照明,则返回1;如果调用灯光或阴影着色器来计算曲面照明,则返回0。
islpeactive
Returns 1 if Light Path Expressions are enabled. 0 Otherwise. 如果启用了光路表达式,则返回1。否则为0。
israytracing
Indicates whether a shader is being executed for ray tracing. 指示是否正在为光线跟踪执行着色器。
isshadingRHS
Detects the orientation of default shading space. 检测默认阴影空间的方向。
isshadowray
Returns 1 if the shader is being called to evaluate opacity for shadow rays, or 0 if the shader is being called to evaluate for surface color. 如果调用着色器来计算阴影光线的不透明度,则返回1;如果调用着色器来计算表面颜色,则返回0。
isuvrendering
Indicates whether the shader is being evaluated while doing UV rendering (e.g. texture unwrapping) 指示在进行UV渲染时是否评估着色器(例如纹理展开)
lightbounces
Returns the bounce mask for a light struct. 返回光结构的反弹遮罩。
lightid
Returns the light id for a light struct. 返回灯光结构的灯光id。
lightstate
Queries the renderer for a named property. 在渲染器中查询命名属性。
limport
Imports a variable from the light shader for the surface. 从曲面的灯光着色器导入变量。
matchvex_blinn
Returns a BSDF that matches the output of the traditional VEX blinn function. 返回与传统VEX blinn函数的输出相匹配的BSDF。
matchvex_specular
Returns a BSDF that matches the output of the traditional VEX specular function. 返回与传统VEX镜面反射函数的输出相匹配的BSDF。
nbouncetypes
objectstate
Queries the renderer for a named property. 在渲染器中查询命名属性。
occlusion
Computes ambient occlusion. 计算环境光遮挡。
pathtrace
Computes global illumination using PBR for secondary bounces. 使用PBR计算二次反弹的全局照明。
phongBRDF
rayhittest
Sends a ray from the position P along the direction D. 从位置P沿方向d发出一条射线。
rayimport
Imports a value sent by a shader in a gather loop. 在聚集循环中导入着色器发送的值。
reflect
Returns the vector representing the reflection of the direction against the normal. 返回表示方向相对于法线的反射的向量。
reflectlight
Computes the amount of reflected light which hits the surface. 计算照射到表面的反射光量。
refract
Returns the refraction ray given an incoming direction, the normalized normal and an index of refraction. 给定入射方向、归一化法线和折射率,返回折射光线。
refractlight
Computes the illumination of surfaces refracted by the current surface. 计算当前曲面折射的曲面照明。
renderstate
Queries the renderer for a named property. 在渲染器中查询命名属性。
resolvemissedray
Returns the background color for rays that exit the scene. 返回离开场景的光线的背景颜色。
scatter
Evaluates a scattering event through the domain of a geometric object. 评估通过几何对象域的散射事件。
setcurrentlight
Sets the current light 设置当前灯光
setsamplestore
Stores sample data in a channel, referenced by a point. 将样本数据存储在通道中,由点引用。
shadow
Calls shadow shaders for the current light source. 为当前光源调用阴影着色器。
shadow_light
Executes the shadow shader for a given light and returns the amount of shadowing as a multiplier of the shaded color. 执行给定灯光的阴影着色器,并返回阴影量作为着色颜色的倍数。
shimport
Imports a variable from the shadow shader for the surface. 从曲面的阴影着色器导入变量。
simport
Imports a variable sent by a surface shader in an illuminance loop. 导入由光照循环中的表面着色器发送的变量。
specularBRDF
Returns the computed BRDFs for the different lighting models used in VEX shading. 返回VEX着色中使用的不同照明模型的计算BRDFs。
storelightexport
Stores exported data for a light. 存储光源的导出数据。
switch
Use a different bsdf for direct or indirect lighting. 使用不同的bsdf进行直接或间接照明。
trace
Sends a ray from P along the normalized vector D. 沿着规范化向量d发送来自P的射线。
translucent
Returns a Lambertian translucence BSDF. 返回朗伯半透明BSDF。
uvunwrap
Computes the position and normal at given (u, v) coordinates, for use in a lens shader. 计算给定(u,v)坐标的位置和法线,用于镜头着色器。
wireblinn
wirediffuse
writepixel
Writes color information to a pixel in the output image 将颜色信息写入输出图像中的像素
STRINGS 用线串
abspath
Returns the full path of a file. 返回文件的完整路径。
chr
Converts an unicode codepoint to a UTF8 string. 将unicode码位转换为UTF8字符串。
concat
Concatenate all the strings specified to form a single string. 连接所有指定的字符串以形成单个字符串。
decode
Decodes a variable name that was previously encoded. 对先前编码的变量名进行解码。
decodeattrib
Decodes a geometry attribute name that was previously encoded. 解码先前编码的几何属性名称。
decodeparm
Decodes a node parameter name that was previously encoded. 解码先前编码的节点参数名称。
encode
Encodes any string into a valid variable name. 将任何字符串编码为有效的变量名。
encodeattrib
Encodes any string into a valid geometry attribute name. 将任何字符串编码为有效的几何属性名称。
encodeparm
Encodes any string into a valid node parameter name. 将任何字符串编码为有效的节点参数名。
endswith
Indicates the string ends with the specified string. 指示字符串以指定的字符串结尾。
find
Finds an item in an array or string. 在数组或字符串中查找项目。
isalpha
Returns 1 if all the characters in the string are alphabetic 如果字符串中的所有字符都是字母,则返回1
isdigit
Returns 1 if all the characters in the string are numeric 如果字符串中的所有字符都是数字,则返回1
itoa
Converts an integer to a string. 将整数转换为字符串。
join
Concatenate all the strings of an array inserting a common spacer. 插入一个公共间隔符连接一个数组的所有字符串。
lstrip
Strips leading whitespace from a string. 从字符串中去除前导空白。
match
This function returns 1 if the subject matches the pattern specified, or 0 if the subject doesn’t match. 如果主题匹配指定的模式,此函数返回1;如果主题不匹配,则返回0。
opdigits
Returns the integer value of the last sequence of digits of a string 返回字符串最后一个数字序列的整数值
ord
Converts an UTF8 string into a codepoint. 将UTF8字符串转换为码位。
pluralize
Converts an English noun to its plural. 将英语名词转换为复数。
re_find
Matches a regular expression in a string 匹配字符串中的正则表达式
re_findall
Finds all instances of the given regular expression in the string 在字符串中查找给定正则表达式的所有实例
re_match
Returns 1 if the entire input string matches the expression 如果整个输入字符串与表达式匹配,则返回1
re_replace
Replaces instances of regex_find with regex_replace 用regex_replace替换regex_find的实例
re_split
Splits the given string based on regex match. 基于正则表达式匹配拆分给定字符串。
relativepath
Computes the relative path for two full paths. 计算两条完整路径的相对路径。
relpath
Returns the relative path to a file. 返回文件的相对路径。
rstrip
Strips trailing whitespace from a string. 从字符串中去除尾随空白。
split
Splits a string into tokens. 将字符串拆分成标记。
splitpath
Splits a file path into the directory and name parts. 将文件路径拆分为目录和名称部分。
sprintf
Formats a string like printf but returns the result as a string instead of printing it. 像printf一样格式化字符串,但将结果作为字符串返回,而不是打印出来。
startswith
Returns 1 if the string starts with the specified string. 如果字符串以指定的字符串开头,则返回1。
strip
Strips leading and trailing whitespace from a string. 从字符串中去除前导和尾随空白。
strlen
Returns the length of the string. 返回字符串的长度。
titlecase
Returns a string that is the titlecase version of the input string. 返回一个字符串,该字符串是输入字符串的大小写版本。
tolower
Converts all characters in string to lower case 将字符串中的所有字符转换为小写
toupper
Converts all characters in string to upper case 将字符串中的所有字符转换为大写
SUBDIVISION SURFACES 细分曲面
osd_facecount
osd_firstpatch
osd_limitsurface
Evaluates a point attribute at the subdivision limit surface using Open Subdiv. 使用开放细分曲面计算细分限制曲面上的点属性。
osd_limitsurfacevertex
Evaluates a vertex attribute at the subdivision limit surface using Open Subdiv. 使用开放细分曲面计算细分限制曲面上的顶点属性。
osd_lookupface
Outputs the Houdini face and UV coordinates corresponding to the given coordinates on an OSD patch. 输出与OSD面片上的给定坐标相对应的Houdini面和UV坐标。
osd_lookuppatch
Outputs the OSD patch and UV coordinates corresponding to the given coordinates on a Houdini polygon face. 输出与Houdini多边形面上的给定坐标相对应的OSD面片和UV坐标。
osd_patchcount
osd_patches
Returns a list of patch IDs for the patches in a subdivision hull. 返回细分外壳中面片的面片id列表。
TETRAHEDRONS 四面体
tet_adjacent
Returns primitive number of an adjacent tetrahedron. 返回相邻四面体的原始数目。
tet_faceindex
Returns vertex indices of each face of a tetrahedron. 返回四面体每个面的顶点索引。
TEXTURING 纹理,贴图
colormap
Looks up a (filtered) color from a texture file. 从纹理文件中查找(过滤的)颜色。
depthmap
The depthmap functions work on an image which was rendered as a z-depth image from mantra. 深度图函数作用于一个图像,该图像被渲染为mantra的z深度图像。
environment
Returns the color of the environment texture. 返回环境纹理的颜色。
expand_udim
Perform UDIM or UVTILE texture filename expansion. 执行UDIM或UVTILE纹理文件名扩展。
has_udim
Test string for UDIM or UVTILE patterns. UDIM或UVTILE图案的测试字符串。
importance_remap
Remaps a texture coordinate to another coordinate in the map to optimize sampling of brighter areas. 将纹理坐标重新映射到贴图中的另一个坐标,以优化较亮区域的采样。
ocean_sample
Evaluates an ocean spectrum and samples the result at a given time and location. 评估海洋光谱并在给定时间和位置对结果进行采样。
ptexture
Computes a filtered sample from a ptex texture map. Use texture instead. 从ptex纹理贴图计算过滤后的样本。请改用纹理。
rawcolormap
Looks up an unfiltered color from a texture file. 从纹理文件中查找未过滤的颜色。
shadowmap
The shadowmap function will treat the shadow map as if the image were rendered from a light source. 阴影贴图功能会将阴影贴图视为从光源渲染的图像。
teximport
Imports attributes from texture files. 从纹理文件导入属性。
texprintf
Similar to sprintf, but does expansion of UDIM or UVTILE texture filename expansion. 类似于sprintf,但扩展UDIM或UVTILE纹理文件名扩展。
texture
Computes a filtered sample of the texture map specified. 计算指定纹理映射的过滤样本。
TRANSFORMS AND SPACE 变换和空间
dihedral
Computes the rotation matrix or quaternion which rotates the vector a onto the vector b. 计算将向量a旋转到向量b的旋转矩阵或四元数。
fromNDC
Transforms a position from normal device coordinates to the coordinates in the appropriate space. 将位置从正常设备坐标转换为适当空间中的坐标。
getpackedtransform
Gets the transform of a packed primitive. 获取打包基元的转换。
getspace
Returns a transform from one space to another. 返回从一个空间到另一个空间的变换。
instance
Creates an instance transform matrix. 创建实例转换矩阵。
lookat
Computes a rotation matrix or angles to orient the negative z-axis along the vector (to-from) under the transformation. 计算旋转矩阵或角度,以在变换下沿矢量(to-from)确定负z轴的方向。
maketransform
Builds a 3×3 or 4×4 transform matrix. 构建3×3或4×4变换矩阵。
ndcdepth
Returns the camera space z-depth of the NDC z-depth value. 返回NDC z深度值的相机空间z深度。
ntransform
Transforms a normal vector. 转换法向量。
orthographic
Create an orthographic projection matrix. 创建正交投影矩阵。
ow_nspace
Transforms a normal vector from Object to World space. 将法向量从对象转换到世界空间。
ow_space
Transforms a position value from Object to World space. 将位置值从对象变换到世界空间。
ow_vspace
Transforms a direction vector from Object to World space. 将方向向量从对象变换到世界空间。
packedtransform
Transforms a packed primitive. 转换打包的图元。
perspective
Create a perspective projection matrix. 创建透视投影矩阵。
polardecomp
Computes the polar decomposition of a matrix. 计算矩阵的极分解。
prerotate
Applies a pre rotation to the given matrix. 对给定矩阵应用预旋转。
prescale
Prescales the given matrix in three directions simultaneously (X, Y, Z - given by the components of the scale_vector). 同时在三个方向上对给定矩阵进行预缩放(X,Y,Z -由scale_vector的分量给出)。
pretranslate
Pretranslates a matrix by a vector. 用向量预平移矩阵。
ptransform
Transforms a vector from one space to another. 将向量从一个空间转换到另一个空间。
rotate
Applies a rotation to the given matrix. 对给定矩阵应用旋转。
rotate_x_to
Rotates a vector by a rotation that would bring the x-axis to a given direction. 通过将x轴旋转到给定方向来旋转向量。
scale
Scales the given matrix in three directions simultaneously (X, Y, Z - given by the components of the scale_vector). 同时在三个方向缩放给定矩阵(X,Y,Z -由scale_vector的分量给出)。
setpackedtransform
Sets the transform of a packed primitive. 设置打包图元的变换。
smoothrotation
Returns the closest equivalent Euler rotations to a reference rotation. 返回与参考旋转最接近的等效欧拉旋转。
solveconstraint
Applies an inverse kinematics algorithm to a skeleton. 对骨骼应用反向运动学算法。
solvecurve
Applies a curve inverse kinematics algorithm to a skeleton. 将曲线反向运动学算法应用于骨骼。
solvefbik
Applies a full-body inverse kinematics algorithm to a skeleton. 将全身反向运动学算法应用于骨骼。
solveik
Applies an inverse kinematics algorithm to a skeleton. 对骨骼应用反向运动学算法。
solvephysfbik
Applies a full-body inverse kinematics algorithm to a skeleton, with optional control over the center of mass. 对骨骼应用全身反向运动学算法,并可选择控制重心。
toNDC
Transforms a position into normal device coordinates. 将位置转换为正常的设备坐标。
translate
Translates a matrix by a vector. 通过向量平移矩阵。
tw_nspace
Transforms a normal vector from Texture to World space. 将法向量从纹理转换到世界空间。
tw_space
Transforms a position value from Texture to World space. 将位置值从纹理变换到世界空间。
tw_vspace
Transforms a direction vector from Texture to World space. 将方向向量从纹理变换到世界空间。
vtransform
Transforms a directional vector. 转换方向向量。
wo_nspace
Transforms a normal vector from World to Object space. 将法向量从世界空间转换到物体空间。
wo_space
Transforms a position value from World to Object space. 将位置值从世界空间转换到对象空间。
wo_vspace
Transforms a direction vector from World to Object space. 将方向向量从世界空间转换到物体空间。
wt_nspace
Transforms a normal vector from World to Texture space. 将法向量从世界变换到纹理空间。
wt_space
Transforms a position value from World to Texture space. 将位置值从世界变换到纹理空间。
wt_vspace
Transforms a direction vector from World to Texture space. 将方向向量从世界变换到纹理空间。
USD 美元
usd_addattrib
Creates an attribute of a given type on a primitive. 在基元上创建给定类型的属性。
usd_addcollectionexclude
Excludes an object from the collection 从集合中排除对象
usd_addcollectioninclude
Includes an object in the collection 在集合中包含一个对象
usd_addinversetotransformorder
Appends an inversed transform operation to the primitive’s transform order 将反向变换操作追加到图元的变换顺序中
usd_addorient
Applies a quaternion orientation to the primitive 将四元数方向应用于基本体
usd_addprim
Creates a primitive of a given type. 创建给定类型的基元。
usd_addprimvar
Creates a primvar of a given type on a primitive. 在基元上创建给定类型的primvar。
usd_addrelationshiptarget
Adds a target to the primitive’s relationship 向基本体的关系添加目标
usd_addrotate
Applies a rotation to the primitive 对基本体应用旋转
usd_addscale
Applies a scale to the primitive 对基本体应用比例
usd_addtotransformorder
Appends a transform operation to the primitive’s transform order 将变换操作追加到基本体的变换顺序
usd_addtransform
Applies a transformation to the primitive 对图元应用变换
usd_addtranslate
Applies a translation to the primitive 将平移应用于基本体
usd_attrib
Reads the value of an attribute from the USD primitive. 从USD原语中读取属性值。
usd_attribelement
Reads the value of an element from an array attribute. 从数组属性中读取元素的值。
usd_attriblen
Returns the length of the array attribute. 返回数组属性的长度。
usd_attribnames
Returns the names of the attributes available on the primitive. 返回原语上可用属性的名称。
usd_attribsize
Returns the tuple size of the attribute. 返回属性的元组大小。
usd_attribtimesamples
Returns the time codes at which the attribute values are authored. 返回创作属性值的时间代码。
usd_attribtypename
Returns the name of the attribute type. 返回属性类型的名称。
usd_blockattrib
Blocks the attribute. 阻止属性。
usd_blockprimvar
Blocks the primvar. 阻挡primvar。
usd_blockprimvarindices
Blocks the primvar. 阻挡primvar。
usd_blockrelationship
Blocks the primitive’s relationship 阻止基本体的关系
usd_boundmaterialpath
Returns the material path bound to a given primitive. 返回绑定到给定图元的材质路径。
usd_clearmetadata
Clears the value of the metadata. 清除元数据的值。
usd_cleartransformorder
Clears the primitive’s transform order 清除基本体的变换顺序
usd_collectioncomputedpaths
Obtains the list of all objects that belong to the collection 获取属于集合的所有对象的列表
usd_collectioncontains
Checks if an object path belongs to the collection 检查对象路径是否属于集合
usd_collectionexcludes
Obtains the object paths that are in the collection’s exclude list 获取集合的排除列表中的对象路径
usd_collectionexpansionrule
Obtains the collection’s expansion rule 获取集合的扩展规则
usd_collectionincludes
Obtains the object paths that are in the collection’s include list 获取集合的包含列表中的对象路径
usd_drawmode
Returns the primitive’s draw mode. 返回图元的绘制模式。
usd_findtransformname
Retrurns primitive’s transform operation full name for given the transform operation suffix 给定转换操作后缀,返回基元的转换操作全名
usd_flattenedprimvar
Reads the value of an flattened primvar from the USD primitive. 从USD原语中读取展平的primvar的值。
usd_flattenedprimvarelement
Reads an element value of a flattened array primvar. 读取展平数组primvar的元素值。
usd_getbbox
Sets two vectors to the minimum and maximum corners of the bounding box for the primitive. 将两个向量设置为图元边界框的最小和最大角。
usd_getbbox_center
Returns the center of the bounding box for the primitive. 返回图元边界框的中心。
usd_getbbox_max
Returns the maximum of the bounding box for the primitive. 返回图元边界框的最大值。
usd_getbbox_min
Returns the minimum of the bounding box for the primitive. 返回图元边界框的最小值。
usd_getbbox_size
Returns the size of the bounding box for the primitive. 返回图元边界框的大小。
usd_getbounds
Obtains the primitive’s bounds 获取图元的边界
usd_getpointinstancebounds
Obtains the primitive’s bounds 获取图元的边界
usd_hasapi
Checks if the primitive adheres to the given API. 检查原语是否符合给定的API。
usd_haspayload
Checks if the primitive adheres to the given API. 检查原语是否符合给定的API。
usd_isactive
Checks if the primitive is active. 检查原语是否处于活动状态。
usd_isarray
Checks if the attribute is an array. 检查属性是否为数组。
usd_isarraymetadata
Checks if the given metadata is an array. 检查给定的元数据是否为数组。
usd_isarrayprimvar
Checks if the primvar is an array. 检查primvar是否为数组。
usd_isattrib
Checks if the primitive has an attribute by the given name. 检查原语是否具有给定名称的属性。
usd_iscollection
Checks if the collection exists. 检查集合是否存在。
usd_iscollectionpath
Checks if the path is a valid collection path. 检查路径是否是有效的集合路径。
usd_isindexedprimvar
Checks if the primvar is indexed. 检查主变量是否有索引。
usd_isinstance
Checks if the primitive is an instance. 检查原语是否为实例。
usd_iskind
Checks if the primitive is of a given kind. 检查图元是否属于给定类型。
usd_ismetadata
Checks if the primitive has metadata by the given name. 检查原语是否具有给定名称的元数据。
usd_isprim
Checks if the path refers to a valid primitive. 检查路径是否指向有效的原语。
usd_isprimvar
Checks if the primitive has a primvar of the given name. 检查原语是否具有给定名称的primvar。
usd_isrelationship
Checks if the primitive has a relationship by the given name. 检查原语是否具有给定名称的关系。
usd_isstage
Checks if the stage is valid. 检查阶段是否有效。
usd_istransformreset
Checks if the primitive transform is reset 检查原始转换是否被重置
usd_istype
Checks if the primitive is of a given type. 检查原语是否属于给定类型。
usd_isvisible
Checks if the primitive is visible. 检查图元是否可见。
usd_kind
Returns the primitive’s kind. 返回原语的种类。
usd_localtransform
Obtains the primitive’s local transform 获取图元的局部变换
usd_makeattribpath
Constructs an attribute path from a primitive path and an attribute name. 从基元路径和属性名构造属性路径。
usd_makecollectionpath
Constructs a collection path from a primitive path and a collection name. 从基元路径和集合名称构造集合路径。
usd_makepropertypath
Constructs an property path from a primitive path and an property name. 从基元路径和属性名构造属性路径。
usd_makerelationshippath
Constructs an relationship path from a primitive path and a relationship name. 从基元路径和关系名构造关系路径。
usd_metadata
Reads the value of metadata from the USD object. 从USD对象读取元数据的值。
usd_metadataelement
Reads the value of an element from the array metadata. 从数组元数据中读取元素的值。
usd_metadatalen
Returns the length of the array metadata. 返回数组元数据的长度。
usd_metadatanames
Returns the names of the metadata available on the object. 返回对象上可用元数据的名称。
usd_name
Returns the name of the primitive. 返回原语的名称。
usd_parentpath
Returns the path of the primitive’s parent. 返回图元的父级路径。
usd_pointinstance_getbbox
Sets two vectors to the minimum and maximum corners of the bounding box for the given instance inside point instancer. 将两个向量设置为点实例化器内给定实例的边界框的最小和最大角。
usd_pointinstance_getbbox_center
Returns the center of the bounding box for the instance inside a point instancer primitive. 返回点实例基本体内部实例的边界框中心。
usd_pointinstance_getbbox_max
Returns the maximum position of the bounding box for the instance inside a point instancer primitive. 返回点实例基本体中实例的边界框的最大位置。
usd_pointinstance_getbbox_min
Returns the minimum position of the bounding box for the instance inside a point instancer primitive. 返回点实例基本体内部实例的边界框的最小位置。
usd_pointinstance_getbbox_size
Returns the size of the bounding box for the instance inside a point instancer primitive. 返回点实例基元内实例的边界框大小。
usd_pointinstance_relbbox
Returns the relative position of the point given with respect to the bounding box of the geometry. 返回给定点相对于几何图形边界框的相对位置。
usd_pointinstancetransform
Obtains the transform for the given point instance 获取给定点实例的转换
usd_primvar
Reads the value of a primvar from the USD primitive. 从USD原语中读取primvar的值。
usd_primvarattribname
Returns the namespaced attribute name for the given primvar. 返回给定primvar的命名空间属性名。
usd_primvarelement
Reads the value of an element from the array primvar. 从数组primvar中读取元素的值。
usd_primvarelementsize
Returns the element size of the primvar. 返回primvar的元素大小。
usd_primvarindices
Returns the index array of an indexed primvar. 返回索引primvar的索引数组。
usd_primvarinterpolation
Returns the element size of the primvar. 返回primvar的元素大小。
usd_primvarlen
Returns the length of the array primvar. 返回数组primvar的长度。
usd_primvarnames
Returns the names of the primvars available on the primitive. 返回基元上可用的原始变量的名称。
usd_primvarsize
Returns the tuple size of the primvar. 返回primvar的元组大小。
usd_primvartimesamples
Returns the time codes at which the primvar values are authored. 返回创作主变量值的时间代码。
usd_primvartypename
Returns the name of the primvar type. 返回primvar类型的名称。
usd_purpose
Returns the primitive’s purpose. 返回原语的用途。
usd_relationshipforwardedtargets
Obtains the relationship forwarded targets. 获取关系转发目标。
usd_relationshipnames
Returns the names of the relationships available on the primitive. 返回原语上可用关系的名称。
usd_relationshiptargets
Obtains the relationship targets. 获取关系目标。
usd_relbbox
Returns the relative position of the point given with respect to the bounding box of the geometry. 返回给定点相对于几何图形边界框的相对位置。
usd_removerelationshiptarget
Remove a target from the primitive’s relationship 从基本体的关系中移除目标
usd_setactive
Sets the primitive active state. 设置原始活动状态。
usd_setattrib
Sets the value of an attribute. 设置属性的值。
usd_setattribelement
Sets the value of an element in an array attribute. 设置数组属性中元素的值。
usd_setcollectionexcludes
Sets the excludes list on the collection 设置集合的排除列表
usd_setcollectionexpansionrule
Sets the expansion rule on the collection 设置集合的扩展规则
usd_setcollectionincludes
Sets the includes list on the collection 设置集合中的包含列表
usd_setdrawmode
Sets the primitive’s draw mode. 设置基本体的绘制模式。
usd_setkind
Sets the primitive’s kind. 设置基本体的种类。
usd_setmetadata
Sets the value of an metadata. 设置元数据的值。
usd_setmetadataelement
Sets the value of an element in an array metadata. 设置数组元数据中元素的值。
usd_setprimvar
Sets the value of a primvar. 设置主变量的值。
usd_setprimvarelement
Sets the value of an element in an array primvar. 设置数组primvar中元素的值。
usd_setprimvarelementsize
Sets the element size of a primvar. 设置primvar的元素大小。
usd_setprimvarindices
Sets the indices for the given primvar. 为给定的主变量设置索引。
usd_setprimvarinterpolation
Sets the interpolation of a primvar. 设置原始变量的插值。
usd_setpurpose
Sets the primitive’s purpose. 设置基本体的用途。
usd_setrelationshiptargets
Sets the targets in the primitive’s relationship 设定基本体关系中的目标
usd_settransformorder
Sets the primitive’s transform order 设置基本体的变换顺序
usd_settransformreset
Sets/clears the primitive’s transform reset flag 设置/清除图元的变换重置标志
usd_setvariantselection
Sets the selected variant in the given variant set. 设置给定变量集中的选定变量。
usd_setvisible
Sets the primitive visibility. 设置图元可见性。
usd_transformname
Constructs a full name of a transform operation 构造转换操作的全名
usd_transformorder
Obtains the primitive’s transform order 获取图元的变换顺序
usd_transformsuffix
Extracts the transform operation suffix from the full name 从全名中提取转换操作后缀
usd_transformtype
Infers the transform operation type from the full name 从全名推断转换操作类型
usd_typename
Returns the name of the primitive’s type. 返回基元类型的名称。
usd_uniquetransformname
Constructs a unique full name of a transform operation 构造转换操作的唯一全名
usd_variants
Returns the variants belonging to the given variant set on a primitive. 返回属于基元上给定变量集的变量。
usd_variantselection
Returns the currently selected variant in a given variant set. 返回给定变量集中当前选定的变量。
usd_variantsets
Returns the variant sets available on a primitive. 返回基元上可用的变量集。
usd_worldtransform
Obtains the primitive’s world transform 获得原始人的世界变换
UTILITY 效用
assert_enabled
Returns 1 if the VEX assertions are enabled (see HOUDINI_VEX_ASSERT) or 0 if assertions are disabled. Used the implement the assert macro. 如果启用了VEX断言,则返回1;如果禁用了断言,则返回0。使用了实现断言宏。
assign
An efficient way of extracting the components of a vector or matrix into float variables. 一种将向量或矩阵的分量提取为浮点变量的有效方法。
error
Reports a custom runtime VEX error. 报告自定义运行时VEX错误。
forpoints
getcomp
Extracts a single component of a vector type, matrix type, or array. 提取向量类型、矩阵类型或数组的单个分量。
isbound
Parameters in VEX can be overridden by geometry attributes (if the attributes exist on the surface being rendered). VEX中的参数可以被几何体属性覆盖(如果属性存在于正在渲染的曲面上)。
isvarying
Check whether a VEX variable is varying or uniform. 检查VEX变量是变化的还是均匀的。
opend
Ends a long operation. 结束长时间操作。
opstart
Start a long operation. 开始长时间的操作。
pack_inttosafefloat
Reversibly packs an integer into a finite, non-denormal float. 可逆地将一个整数打包成一个有限的非反规范浮点数。
print_once
Prints a message only once, even in a loop. 即使在循环中也只打印一次消息。
printf
Prints values to the console which started the VEX program. 将值打印到启动VEX程序的控制台。
ramp_lookup
Evaluates a Houdini-style ramp at a specific location. 评估特定位置的胡迪尼式坡道。
ramp_unpack
Unpacks a string-encoded ramp into a set of arrays. 将字符串编码的斜坡解包到一组数组中。
select
Returns one of two parameters based on a conditional. 基于条件返回两个参数之一。
set
Creates a new value based on its arguments, such as creating a vector from its components. 基于其参数创建新值,例如从其分量创建向量。
setcomp
Sets a single component of a vector or matrix type, or an item in an array. 设置向量或矩阵类型的单个组件或数组中的一个项目。
sleep
Yields processing for a certain number of milliseconds. 产生一定毫秒数的处理。
swizzle
Rearranges the components of a vector. 重新排列向量的分量。
unpack_intfromsafefloat
Reverses the packing of pack_inttosafefloat to get back the original integer. 反转pack _ inttosafefloat的打包以获取原始整数。
warning
Reports a custom runtime VEX warning. 报告自定义运行时VEX警告。
VOLUME 体积
volume
Returns the volume of the microvoxel containing a variable such as P. 返回包含变量(如p)的微体积。
volumegradient
Calculates the volume primitive’s gradient. 计算体积基本体的渐变。
volumeindex
Gets the value of a specific voxel. 获取特定体素的值。
volumeindexactive
Gets the active setting of a specific voxel. 获取特定体素的活动设置。
volumeindexorigin
Gets the index of the bottom left of a volume primitive. 获取volume基元左下角的索引。
volumeindextopos
Converts a volume voxel index into a position. 将体素索引转换为位置。
volumeindexv
Gets the vector value of a specific voxel. 获取特定体素的向量值。
volumepostoindex
Converts a position into a volume voxel index. 将位置转换为体素索引。
volumeres
Gets the resolution of a volume primitive. 获取体积图元的分辨率。
volumesample
Samples the volume primitive’s value. 对体积基本体的值进行采样。
volumesamplev
Samples the volume primitive’s vector value. 对体积基本体的向量值进行采样。
volumevoxeldiameter
Computes the approximate diameter of a voxel. 计算体素的近似直径。