表达式 | Description | 中文描述 |
|---|
n1…n8 | Numeric Inputs | 数值输入 |
p1x…p4x, p1y…p4y | Position Values (X-axis, Y-axis) | 位置值(X轴,Y轴) |
s1…s4 | Setup Expression Results | 设置表达式结果 |
i1…i4 | Intermediate Expression Results | 中间表达式结果 |
time | Current Frame | 当前帧数 |
x, y | Horizontal/Vertical coordinate of the current pixel, between 0.0 and 1.0 | 当前像素的水平/垂直坐标,范围0.0到1.0 |
w, h (w1…w3, h1…h3) | Width/Height of Image (for image1…image3) | 图像宽度/高度(针对image1…image3) |
ax, ay (ax1…ax3, ay1…ay3) | Image Aspect X/Y (for image1…image3) | 图像X/Y比例(针对image1…image3) |
c1…c3, r1…r3, g1…g3, b1…b3, a1…a3 | Current Channel, Red, Green, Blue, Alpha (for image1…image3) | 当前通道、红、绿、蓝、Alpha(针对image1…image3) |
z1…z3, cv1…cv3 | Z-Buffer, Z Coverage (for image1…image3) | Z缓冲、Z覆盖(针对image1…image3) |
u1…u3, v1…v3 | U/V Coordinate (for image1…image3) | U/V坐标(针对image1…image3) |
nx1…nx3, ny1…ny3, nz1…nz3 | X/Y/Z Normal (for image1…image3) | X/Y/Z法线(针对image1…image3) |
bgr1…bgr3, bgg1…bgg3, bgb1…bgb3, bga1…bga3 | Background Red, Green, Blue, Alpha (for image1…image3) | 背景红、绿、蓝、Alpha(针对image1…image3) |
vx1…vx3, vy1…vy3 | X/Y Vector (for image1…image3) | X/Y向量(针对image1…image3) |
pi | The value of pi | 圆周率π值 |
e | The value of e | 自然对数底e值 |
log(x) | The base-10 log of x | x的以10为底的对数 |
ln(x) | The natural (base-e) log of x | x的自然对数(以e为底) |
sin(x), cos(x), tan(x) | The sine, cosine, tangent of x (x is degrees) | x的正弦、余弦、正切(x为度) |
asin(x), acos(x), atan(x) | The arcsine, arccosine, arctangent of x, in degrees | x的反正弦、反余弦、反正切,以度为单位 |
atan2(x,y) | The arctangent of x,y, in degrees | x,y的反正切,以度为单位 |
abs(x) | The absolute (positive) value of x | x的绝对值(正值) |
int(x) | The integer (whole) value of x | x的整数值 |
frac(x) | The fractional value of x | x的小数值 |
sqrt(x) | The square root of x | x的平方根 |
rand(x,y) | A random value between x and y | x和y之间的随机值 |
rands(x,y,s) | A random value between x and y, based on seed s | 基于种子s的x和y之间的随机值 |
min(x,y) | The minimum (lowest) of x and y | x和y的最小值 |
max(x,y) | The maximum (highest) of x and y | x和y的最大值 |
dist(x1,y1,x2,y2) | The distance between point x1,y1 and x2,y2 | 点x1,y1和x2,y2之间的距离 |
dist3d(x1,y1,z1,x2,y2,z2) | The distance between 3D points x1,y1,z1 and x2,y2,z2 | 3D点x1,y1,z1和x2,y2,z2之间的距离 |
noise(x), noise2(x,y), noise3(x,y,z) | Smoothly varying Perlin noise value based on x, x/y, or x/y/z | 基于x、x/y或x/y/z的平滑Perlin噪声值 |
if(c,x,y) | Returns x if c is not 0, otherwise y | 如果c非0返回x,否则返回y |
!x, -x, +x | Logical NOT, negation, or no-op | 逻辑非、取负或无操作 |
x ^ y | x raised to the power of y | x的y次幂 |
x * y, x / y, x % y | Multiplication, division, modulo | 乘法、除法、模运算 |
x + y, x - y | Addition, subtraction | 加法、减法 |
x < y, x > y, x <= y, x >= y | Comparison operators | 比较运算符 |
x = y, x == y, x <> y, x != y | Equality and inequality operators | 相等和不相等运算符 |
x & y, x && y, x | y, x || y | Logical AND, OR | 逻辑与、或 |
get[ch][#]b(x, y) | Read pixel at x,y, or 0 if out of bounds—e.g., getr1b(0,0) | 读取x,y处像素值,若超出边界返回0,例如getr1b(0,0) |
get[ch][#]d(x, y) | Read pixel at x,y or edge pixel if out of bounds—e.g., getr1d(0,0) | 读取x,y处像素值,若超出边界返回边缘像素值,例如getr1d(0,0) |
get[ch][#]w(x, y) | Read pixel at x,y or wrap if out of bounds—e.g., getr1w(0,0) | 读取x,y处像素值,若超出边界环绕到图像另一侧,例如getr1w(0,0) |
getr1b(x,y) | Output the red value of the pixel at position x, y, if there were a valid pixel present. It would output 0.0 if the position were beyond the boundaries of the image (all channels). | 输出x,y处像素的红色值,若位置有效则返回像素值,若超出图像边界返回0.0(适用于所有通道)。 |
getr1d(x,y) | Output the red value of the pixel at position x, y. If the position specified were outside of the boundaries of the image, the result would be from the outer edge of the image (RGBA only). | 输出x,y处像素的红色值,若位置超出图像边界,返回图像外边缘的像素值(仅限RGBA通道)。 |
getr1w(x,y) | Output the red value of the pixel at position x, y. If the position specified were outside of the boundaries of the image, the x and y coordinates would wrap around to the other side of the image and continue from there (RGBA only). | 输出x,y处像素的红色值,若位置超出图像边界,x,y坐标环绕到图像另一侧继续读取(仅限RGBA通道)。 |