daz_set_active_camera
Change the active viewport camera to show the scene from a specified camera's perspective. The previous camera is returned for reference.
Instructions
Set which camera is active in the DAZ Studio viewport.
Changes the active viewport camera to show the scene from the specified camera's perspective. The previous active camera is returned for reference.
Args: camera_label: Display label of the camera to activate.
Returns:
success: true on success
camera: label of the camera that was activated
previousCamera: label of the previously active camera (or null)
Example: # Switch to a specific camera daz_set_active_camera("Camera 1")
# Switch to a custom camera
daz_set_active_camera("Close Up Camera")
# Switch back to default camera
daz_set_active_camera("Perspective View")Note: The camera must exist in the scene. Use daz_scene_info() to list available cameras. The viewport updates immediately to show the camera's current view.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera_label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||