How to get all nodes affected by some node in Maya?

In Maya, when you enable the "Display affected" option, the nodes affected by the selected node turn pink in the viewport. Is there a way to get a list of these nodes?

To be more specific, need to check if I animate or change the value of an attribute in node_A will it affect node_B?

+3


source to share


2 answers


There are several ways this can work. Depending on what you want to know:

  • The command listHistory

    can show you which nodes are up or down from a given node.
  • The command listConnections

    will explicitly track connections between attributes and nodes. This reflects the actual hypergraph structure for your objects. It can include many intermediate nodes that you will need to go through.


listHistory

mostly used for geometry nodes (such as deformers or modifiers), but listConnections

used for node and attribute joins

+2


source


There is a command called affects . This command will tell you which output values ​​affect the selected attribute. You can then recursively retrieve these attributes so that traffic flows further using listConnections.



0


source







All Articles