daz_load_camera_preset
Restore camera position and rotation from a saved preset. Apply preset data to any camera to replicate camera setups across scenes.
Instructions
Restore camera position and rotation from preset data.
Applies saved preset data (from daz_save_camera_preset()) to a camera, restoring its position, rotation, and scale.
Args: camera_label: Display label of the camera to modify. preset: Preset dictionary from daz_save_camera_preset(), containing: - transforms: Dictionary of property names to values
Returns:
success: true on success
camera: camera label
applied: list of property names that were applied
Example: # Load previously saved preset with open("my_camera_preset.json") as f: preset = json.load(f)
result = daz_load_camera_preset("Camera 1", preset["preset"])
print(f"Applied properties: {result['applied']}")
# Apply same preset to multiple cameras
cameras = ["Camera 1", "Camera 2", "Camera 3"]
for cam in cameras:
daz_load_camera_preset(cam, preset["preset"])Note: - Preset can be applied to any camera, not just the original - Only properties present in the preset are modified - Useful for saving/loading camera positions across sessions - Can be used to synchronize multiple cameras
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera_label | Yes | ||
| preset | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||