Compare two nodes
compare_td_nodesCompare two TouchDesigner nodes and see which parameters differ. Use to align settings between operators by returning a list of differing values.
Instructions
Read-only: diff the parameters of two nodes, returning only the values that differ (by default). Returns {type_match, differing_count, differing[], same_count}. Useful for aligning settings across similar operators; compares two live nodes, whereas diff_snapshots compares two whole-network snapshots over time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path_a | Yes | First node path. | |
| path_b | Yes | Second node path. | |
| only_diff | No | Return only the parameters that differ (true) or also list the identical ones. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | Path of the first node compared. | |
| b | Yes | Path of the second node compared. | |
| type_a | Yes | Operator type of the first node. | |
| type_b | Yes | Operator type of the second node. | |
| type_match | Yes | True if both nodes are the same operator type. | |
| differing_count | Yes | Number of parameters whose values differ. | |
| same_count | Yes | Number of parameters that are identical on both nodes. | |
| differing | Yes | Every parameter that differs, with each node's value. | |
| identical | No | Names of identical parameters; present only when only_diff is false. |