redpawFX
09-18-2009, 07:25 PM
I have what seems like a trivial question.. but I'm just hacking my way to learning still.. :-)
I have an MObject attribute created on a custom locator node
in maya I want to connect another nodes output to it (say translate from a sphere)
so I do a connectAttr blah blah blah..
within the API I want to traverse to the connected node (the sphere's translate )
and be able to run a set value command on the sphere's translate directly..
how do I get from the MObject attr on my locator to an MObject attr on the connected sphere?
any help would be much appreciated. thinking I could just use api calls to listConnections mel commands if I needed to , but that seems kinda sloppy.. is there a "list connections" equiv in the API?
thanks
-johnc
I have an MObject attribute created on a custom locator node
in maya I want to connect another nodes output to it (say translate from a sphere)
so I do a connectAttr blah blah blah..
within the API I want to traverse to the connected node (the sphere's translate )
and be able to run a set value command on the sphere's translate directly..
how do I get from the MObject attr on my locator to an MObject attr on the connected sphere?
any help would be much appreciated. thinking I could just use api calls to listConnections mel commands if I needed to , but that seems kinda sloppy.. is there a "list connections" equiv in the API?
thanks
-johnc
