scene_file
Read, save, load, undo, or redo Houdini scene files. Check unsaved work before risky changes, then save or step through undo history.
Instructions
Read, save or load the scene file, or step its undo history.
Use "save" before a change that is hard to undo, and use "info" to learn
whether the session holds work that is not saved.
mode:
"info" — the file name, the frame range, the counts, and whether the
session has changes that are not saved.
"save" — save to `path`, or over the open file when `path` is empty.
"load" — open the .hip file at `path`. Everything in the session goes
away, and the undo history with it.
"undo" — undo `count` steps. Each call of a tool that changes the
scene is one step. A batch is one step, except a batch with a
step that waits (capture, render): there each step is one.
Returns the labels it undid and the next ones.
"redo" — redo `count` steps.
Returns JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | One of "info", "save", "load", "undo", "redo". | info |
| path | No | save: the file to write; empty saves over the open file. load: the .hip file to open. | |
| count | No | undo and redo: how many steps. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |