daz_batch_set_properties
Batch set multiple properties on one or more nodes in a single call, with individual error handling for each operation. Avoids aborting on failure and improves efficiency over separate calls.
Instructions
Set multiple properties on one or more nodes in a single call.
Executes multiple property-setting operations with individual error handling. Failed operations don't abort the entire batch - each operation returns success status and error details.
Args: operations: List of operation objects, each containing: - nodeLabel (str): Display label of the node - propertyName (str): Property label or internal name - value (float): New value for the property
Returns:
results: Array of result objects with success, node, property, value, error
successCount: Number of successful operations
failureCount: Number of failed operations
total: Total number of operations attempted
Example: # Set multiple properties on different nodes daz_batch_set_properties([ {"nodeLabel": "Genesis 9", "propertyName": "XTranslate", "value": 100}, {"nodeLabel": "Genesis 9", "propertyName": "YRotate", "value": 45}, {"nodeLabel": "Camera 1", "propertyName": "ZTranslate", "value": 300} ])
# Apply multiple morphs to a character
daz_batch_set_properties([
{"nodeLabel": "Genesis 9", "propertyName": "PHMSmile", "value": 0.5},
{"nodeLabel": "Genesis 9", "propertyName": "PHMEyesWide", "value": 0.3},
{"nodeLabel": "Genesis 9", "propertyName": "PHMBrowsUp", "value": 0.4}
])Note: This is significantly more efficient than calling daz_set_property individually for each operation. All operations execute in a single script call to DAZ Studio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||