Automate
Description
The Automate node is a control-flow utility that passes its input through unchanged while triggering automation side effects. It acts as a "remote control" for the workflow execution: enabling/disabling auto-restart loops, resetting sequencers, clearing outputs, or saving results to RTF files.
It is typically placed at strategic points in a workflow — for example, at the beginning to initialize a loop, or at the end to stop it cleanly.
Configuration Properties
Auto Restart Section
Do not change
Leaves the current auto-restart state untouched. The workflow continues with whatever auto-restart setting was active before this node executed.
Enable
Activates auto-restart mode. When the workflow reaches its end (all active nodes have executed), it automatically restarts from the beginning. This is essential for creating continuous loops (e.g., processing items from a sequencer one by one).
Disable
Deactivates auto-restart mode. The workflow stops cleanly after the current execution cycle completes. This is typically used at the end of a loop to break it when a condition is met (e.g., when a sequencer has exhausted all its items).
⚙️ Options Section
Reset Sequencers
When checked, all SequencerNode instances on the canvas are reset to their initial state (position 0, items cleared). This is useful at the beginning of a workflow to ensure sequencers start fresh, especially when re-running a loop with new input data.
Clear Output
When checked, clears the content of the output panel (RTB_Output). This prevents accumulation of results from previous runs, giving you a clean slate for each execution.
Save Output To RTF
When checked, saves the current content of the output panel to an RTF (Rich Text Format) file. This allows you to export workflow results for external use (e.g., importing into a word processor or game design document).
Usage Example
"Game Asset Forge" Loop Control:
- Start of workflow: An
Automatenode with Auto Restart: Enable and Reset Sequencers: checked ensures the loop starts fresh and keeps running. - End of workflow: A second
Automatenode with Auto Restart: Disable is triggered when the sequencer signals "Cycle complete", stopping the loop cleanly. - Optional: Add Save Output To RTF: checked on the final node to automatically export generated assets to a file.
Pitfalls to Avoid ⚠️
Auto Restart Enable without a stop condition: If you enable auto-restart but don't provide a mechanism to disable it (e.g., a second Automate node triggered by a SwitchNode or SequencerNode completion signal), the workflow will loop indefinitely. Always pair an "Enable" with a "Disable" somewhere downstream.
Reset Sequencers at the wrong time: If you reset sequencers in the middle of a loop (e.g., on every iteration), they will never advance. Only use this option at the beginning of a workflow, not during iteration.
Clear Output during iteration: Clearing the output panel on every loop iteration will erase results from previous iterations. Only use this at the start of a workflow, or accept that you'll only see the last iteration's output.
Stub features: As noted above, Clear Output and Save Output To RTF are not yet fully implemented. Don't rely on them for production workflows until they are completed.
Placement matters: The Automate node executes its side effects before passing data through. If you place it after an AgentNode, the auto-restart state changes will only take effect after the agent finishes. Plan your node order carefully to avoid race conditions.