daz_set_frame
Set the current animation frame to evaluate and display the scene state at that frame. Use to navigate timeline, inspect keyframes, or prepare for rendering.
Instructions
Set current animation frame.
Moves the timeline to the specified frame. This updates the scene to show the state at that frame, evaluating all animated properties.
Args: frame: Frame number to move to (integer).
Returns:
success: true
frame: new current frame
previousFrame: frame number before the change
Example: # Jump to specific frame daz_set_frame(30)
# Render each frame of animation
info = daz_get_animation_info()
for frame in range(info['startFrame'], info['endFrame'] + 1):
daz_set_frame(frame)
daz_render(output_path=f"frame_{frame:04d}.png")
# Preview keyframes
keyframes = daz_get_keyframes("Genesis 9", "XTranslate")
for kf in keyframes['keyframes']:
daz_set_frame(kf['frame'])
# ... preview or inspect ...Note: - Scene updates to show animated state at the frame - All animated properties evaluate at the new frame - Frame numbers are typically 0-based integers - Use with daz_render() to export animation frames
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||