Hi all, I created a nurbsCircle and applied Attach to Motion Path to a selected Curve. Now I wish to edit its motionPath_uValue using MEL. I hope I can simply select the nurbsCircle and locate its motionPath_uValue node. I have tried using listConnections command as: listConnections -s 1 -d 0 nurbsCircle1;
but the command only return the nodes that is directly connected to the nurbsCircle (which is expected). However the node which I hope to retrieve is connected to the motionPath node which is like a distance cousin node of nurbsCircle node.
Is there a better way then stepping down to each node to find the one needed. Is there a way to list out all nodes (including indirectly connected nodes) connected to selected node.
Also, listConnections command return nodes that are connected to the selected source, hence producing same node names. Is there a way to get rid of repeated names.
That's why the hypergraph is for. Select curve and circle, open hypergraph and go Graph->Input and output connections. Note that hypergraph has two modes of operation: (1) scene hierechy graph and (2) nodes/connections graph.
Hi, Indeed, I have tried manually looking into the Hypergraph and now Iwish to doit via MEL only. I wish to select the circle node and be able to locate its motionPath_uValue node, that is to return the name of the motionPath_uValue node...
its not THAT hard to step trough connections! But if you allready know the name what is the purpose of this exercise! But heres a one that iterates trough all the data and prints it for you. Also f you want the actual distance then you need to make a arcLengthnode connected to the curves other end and multiply the u value by that!
This one uses the object as the source for selection but you could modify it easily to be the same as failures version!
{ string $geometry; string $selection[]; $selection=ls -sl; for ($geometry in $selection){ print ($temp=listConnections ($geometry+".rx")); print ($temp2=listConnections ($temp[0]+".uValue")); //you mey continue iteration as much as you want! } }