Console ScriptbeginnerConsole Scripts

Reset Math Node Parameters

Iterates all nodes in the scene, filters those whose node_id contains "math", and resets their "a" parameter to 0. Demonstrates selective parameter manipulation by node type.

Scripting Console · scene / app / gitConsole Script · Graph Manipulation

Scripting Console APIs Used

Available globals: scene · app · git · registry
scene.nodes
node.node_definition.node_id
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.nodes#set_parameter#filter#reset

Source

examples/automation/06_reset_math_nodes.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