贴图表达式示例

控制指定区域中的成束幅值

此表达式使用贴图值沿每条样条线长度方向应用成束幅值。最小和最大值指定 $t 的输入值范围。此全局变量 ($t) 沿每条样条线长度方向应用值。它不受所有属性和修改器支持。

#map painted for the Clumping attribute.
$a=map('${DESC}/paintmaps/clumping1_alongLength');#3dpaint,30.0   

#Declare local values for the expanded range of the $t global variable.
$min=0.0000;#0.00,0.5
$max=2.0000;#0.50,5.00

#$t applies the clumping values. The fit() expands the input range for $t, taking it from 0 and 1 to 0 and 5.
$t^($a->fit(0,1,$min,$max))

使用贴图向指定区域添加噪波

此表达式使用贴图控制应用噪波的位置并设置噪波幅值。

#Painted map.
$a=map('${DESC}/paintmaps/mask_NoiseMap');#3dpaint,30.0

#Declare local variables for input values for noise functions.
hi =1.000;
$lo =0.192;
$contrast =0.973;
$freq =25.0000; #.1,30

#Multiple noise layers calculated.
$a*smoothstep(noise($P*$freq), $lo, $hi) -> contrast($contrast)

在多个密度遮罩中进行选择

您可以为密度遮罩创建多个贴图并使用滑块控件轻松在它们之间进行选择。

#Create mulitple Density masks.
$a=map('${DESC}/paintmaps/Density_mask');#3dpaint,20.0
$b=map('${DESC}/paintmaps/Density_Mask1');#3dpaint,20.0
$c=map('${DESC}/paintmaps/Density_Mask2');#3dpaint,20.0
$d=map('${DESC}/paintmaps/Density_Mask3');#3dpaint,20.0

#Declare local variable for map selection. Slider control set for 1-4 for four maps.
$select=4;#1,4

#Sets selection range. 
$fit=expand($select,1,4);

#choose() functon chooses a selection choice based on the range.
choose($fit,$a,$b,$c,$d)

修改绘制贴图的色调、饱和度和强度

$Hue=152;#0,360;
$Saturation=1.0000;#0.00,2.00;
$Intensity=1.0000;#0.00,2.00;
$a=map('${DESC}/groom/region/');#3dpaint,20.0
$a->hsi($Hue, $Saturation, $Intensity)