相对于像素节点¶
The Relative To Pixel node converts values that are relative to the image size into values in pixel units. This is useful when working with screen-space operations that require absolute pixel values, such as blurring or positioning effects in the compositor.
输入¶
- 数值
A float or vector value that is relative to the image size and should be converted to pixels.
- 图像
The image used to determine the resolution for the conversion. This defines the reference size used for computing pixel values.
属性¶
- 数据类型
The type of data being converted.
- 浮点:
单个浮点值。
- 矢量:
A vector (e.g. 2D) value.
- 参照维度
Defines which part of the image's dimensions the relative value refers to.
- 每个维度:
Each axis (X and Y) is scaled independently by the image width and height.
- X:
The value is scaled relative to the image width.
- Y:
The value is scaled relative to the image height.
- 大于:
The value is scaled relative to the larger of the image dimensions.
- 较小:
The value is scaled relative to the smaller of the image dimensions.
- 斜向:
The value is scaled relative to the diagonal length of the image.
输出¶
- 数值
The input value converted from a relative scale to an absolute pixel scale. The output type matches the selected Data Type.