playbar_control
Control Houdini playbar playback and navigation: play, reverse, stop, step forward/backward, and jump to playback range endpoints.
Instructions
playbar 播放 / 步进 / 跳转(PR 19,运行态时间线写,no-undo)。
``action`` 取值:
- ``play`` / ``reverse`` / ``stop``:直接调 SideFX HOM 同名方法。
- ``step_forward`` / ``step_backward``:仅通过
``hou.setFrame(current ± hou.playbar.frameIncrement())``
路径并 clamp 到当前 playback range 闭区间,**不引入其
他 step helper**(increment 非有限正数 / range 不可用
→ error 且 **不**调 hou.setFrame)。
- ``goto_start`` / ``goto_end``:直接设 playback range 端点。
整个 action 集在 NO_UNDO_COMMANDS 中,batch dispatcher 在
该命令前关闭 undo segment,保证不进入 ``hou.undos.group``。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ctx | Yes | ||
| action | Yes |