scatter_objects
Randomly distribute object copies inside a box or over a surface, with optional rotation/scale and a seed for reproducible placement. Use for filling scenes with grass, rubble, or crowds.
Instructions
在盒状区域内(或某个表面之上)随机散布对象副本,可随机旋转/缩放,并用 seed 保证结果可复现。用于做草地、碎石、观众席等大量重复物。数量很大时会卡,建议分批。 [English] Scatter copies of objects randomly inside a box (or over a surface), with optional random rotation/scale and a seed for reproducibility. Great for grass, rubble, crowds. Huge counts lag; scatter in batches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | 随机种子,相同种子结果一致。 | Random seed; same seed = same result. | |
| size | No | 盒状区域尺寸 [x,y,z]。 | Box region size [x,y,z]. | |
| count | No | 生成的实例总数,默认等于原型数。 | Total instances, default = prototype count. | |
| center | No | 散布区域中心 [x,y,z]。 | Scatter region center [x,y,z]. | |
| region | No | box=盒内随机,surface=投影到 surface 对象表面。 | box=random in box, surface=project onto the surface object. | box |
| objects | No | 原型对象列表;省略则用当前选择。 | Prototype objects; omit for the selection. | |
| surface | No | surface 模式下的承载对象名(地面/地形)。 | Surface carrier name for surface mode (ground/terrain). | |
| scaleMax | No | 随机缩放上限。 | Random scale upper bound. | |
| scaleMin | No | 随机缩放下限。 | Random scale lower bound. | |
| randomScale | No | 是否随机缩放,默认否。 | Random scale, default false. | |
| randomRotation | No | 是否随机旋转,默认是。 | Random rotation, default true. |