Set Node Graph Port Value
set_graph_portUpdate a specific port value on a node within a Cinema 4D material graph by providing the node's ID, port path, and new value. Supports boolean, number, string, and vector types.
Instructions
Update a single port on a node addressable by its stable $id within a node material graph. Thin convenience over apply_graph_description: internally builds a {$query:{$id:node_id}, port: value} payload. Lists of 3 numbers are coerced to maxon.Vector for vector-typed ports.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | Port path, e.g. 'Base/Metalness' or 'Image/Custom Gamma'. | |
| scope | No | Target the scene-nodes graph on the active document. | |
| value | Yes | New port value. [x,y,z] is passed as maxon.Vector. | |
| handle | No | Material handle. Required unless `scope:'document'`. | |
| node_id | Yes | The $id assigned to the target node. | |
| node_space | No | Alias 'standard' | 'redshift' | 'scenenodes' or maxon.Id. Default 'standard'. |