Console ScriptbeginnerConsole Scripts

Reset Scene to Default

Clears the current scene, adds a single message_node, and sets its msg parameter to a welcome string. The canonical "clean slate" script pattern.

Scripting Console · scene / app / gitConsole Script · Scene API

Scripting Console APIs Used

Available globals: scene · app · git · registry
scene.clear()
scene.add_node_by_name()
node.set_parameter()

How to Run

  1. 1Open Vibrante-Node
  2. 2Go to Scripts menu → Open Script File
  3. 3Select this .py file from your filesystem
  4. 4Click Run — or add to Scripts folder for menu shortcut

Tags

#console#scene.clear#add_node_by_name#reset#beginner

Source

examples/automation/03_reset_scene.py

Scripting Console script using scene/app/git globals

Related Examples

Browse all →
# Scripting Console
scene.clear()
scene.add_node_by_name()
scene.connect_nodes()
Script

Build a Linear Chain

beginner

Scripting Console script that calls scene.clear(), adds four message nodes with scene.add_node_by_name(), and wires them in sequence with scene.connect_nodes(). The hello-world script.

scene.clear()scene.add_node_by_name()
#console#scene.add_node_by_name#scene.connect_nodes
# Scripting Console
scene.nodes
node.node_definition.node_id
node.set_parameter()
Script

Batch Parameter Update

intermediate

Iterates scene.nodes, checks node_definition.node_id, and calls node.set_parameter() to bulk-update a prefix on all matching nodes. Useful for path remapping across large graphs.

scene.nodesnode.node_definition.node_id
#console#scene.nodes#set_parameter
# Scripting Console
scene.find_node_by_name()
node.set_parameter()
app.execute_pipeline()
Script

Trigger Pipeline Execution

intermediate

Uses scene.find_node_by_name() to locate a target node, calls set_parameter() to inject a value, then calls app.execute_pipeline() to run the full graph programmatically.

scene.find_node_by_name()node.set_parameter()
#console#app.execute_pipeline#find_node_by_name