Use Ptex maps and expressions together to generate output values for primitive attributes. For example, you can create a Ptex map then use an expression to change how the map's values affect the primitive's color.
After creating a Ptex map, you can use the values it generates as an input to an expression or use an expression to modifiy the Ptex map values.
The Ptex map expression should look similar to the following:
$a=map('${DESC}/paintmaps/mask');
$b = rand(0.2, 1.4);
$a*$b
You can create multiple Ptex maps, and then use an expression to combine the maps' effect on the primitives. In this example, the effect of two Ptex maps are combined to control the Preview Color attribute. You can use the same worklfow to create and combine Ptex maps for other primitive attributes.
This expression combines the Ptex map values.
In the XGen Editor under Primitive Color, notice that values for two Ptex maps now display.
There are a number of other ways to combine the Ptex map values. For example, you can add the map values, and then randomize the product by adding $a+$b*rand(0.6,1) to your expression.
You can copy this expression to other primitive attributes, such as Length, to control their values.
You can also use an expression to combine the output values of two Ptex maps to generate a number of interesting effects. See Noise expression examples.