You can use global expressions to set multiple attributes with the same computed value.
For example, you can use a global expression to create random values for overall primitive size. This way, the attributes, such as Length, Width, and Depth, use the same random values to maintain the primitive's proper shape.
Global expressions provide an ideal way to compute constant values for other attribute-based expressions. They are Collection-based so they can be applied to all Descriptions belonging to a Collection.
If you are new to using XGen expressions, see XGen expression basics.
To create a global randomization expression
Maya creates an empty ( value =0) global expression.
This creates a slider control for the expression's input value.
Maya adds the randomize expression to the Expression tab.
For example, type randomize() beside Length, Width, and Depth to randomize the size of generated primitives.