Enable – Enables scattering. Scatter Type – Specifies in which mode scattering is applied. 1D - On Curves – Scattering mode where objects are scattered along curves. Open or closed curves can be used for this. 2D - On Surfaces – Scattering mode where objects are scattered on surfaces. It doesn't matter if the surface is horizontal, vertical, or part of a complex 3D object. Closed splines can also be used in this mode. In that case, instances are distributed in the area enclosed by the spline. 3D - In Bounding Box – Scattering mode where objects are scattered inside the object's bounding box. Keep in mind that bounding boxes are cube-shaped; therefore, using this mode on a round object scatters instances in a cube around it. This mode is useful when scattering dust particles inside a room, fish in an aquarium, books on a bookshelf, and similar. Seed – Determines the random distribution used. Changing this value causes random permutations of the scattered objects(s). Temporal Consistency – When enabled, instances are scattered in the selected Rest-pose Frame and stick to the surface, even if they get deformed in other frames. Otherwise, instances get scattered in each frame separately, which might cause anomalies. Note that Temporal Consistency does not work in IPR yet. If the Temporal consistency option is enabled, Avoid collisions does not apply to frames outside the initial Rest-pose frame. |
– Determines the initial frame, where the instances are scattered for all following frames. The specified frame with Rest-pose must correspond to the first frame of the animation. Avoid Collisions – When enabled, instances colliding with each other get discarded. This results in no overlaps between instances. Note that enabling this option might lower the number of instances. Avoid Collisions Spacing – Controls the bounding boxes' size to detect collisions. Smaller values result in denser instances with some collision; higher values result in larger distances between instances. Values above 1 mean the distance between objects is larger than their bounding boxes. Convert to Maya instances – Instanced geometry is converted into separate, modifiable objects by pressing this button. It is compatible with Maya geometry and lights, V-Ray lights and proxy meshes. After conversion, all objects are grouped in the Outliner, allowing for individual selection.
Convert to Maya instances can be executed as part of a script with "vrayBakeScatterInstances" as the command. A Scatter shape is required as an argument.
Example with MEL script: vrayBakeScatterInstances ChaosScatterShape1; |
Example with Python script: maya.cmds.vrayBakeScatterInstances('ChaosScatterShape1') |
The original scatter objects will be hidden upon execution of the command. To bring their visibility back, use Shift+H shortcut or use the following command in MEL: setAttr ChaosScatterShape1.v 1 |
|
|
|