Modify instances
modifyApply property, attribute, and tag changes to multiple instances in one transaction. Supports adding and removing tags, with rollback if any value is rejected.
Instructions
Sets properties, attributes and tags on existing instances, as one undoable step.
Each entry takes a list of paths, so one entry can apply the same change to many instances — anchoring 200 parts is one entry, not 200. Combine with find to build the path list.
The batch is all-or-nothing: if any value is rejected the recording is cancelled and every instance reverts, rather than leaving the place half-changed.
Values use the same notation the Properties panel shows — see the properties field. To change a script's code use script_edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targets | Yes | Changes to apply together as one undoable step. | |
| studioId | No | Target Studio; omit for the active one. |