Message 1 of 2
API - Get and set translate info on same node during compute() in custom node

Not applicable
06-29-2018
02:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want it to be something like a constraint. One input object will be the "driver". The others (an array, compound, whatever I find suitable) will change their position as "driven".
To do this, my custom node input should be the driver and the driven translate nodes..
On the compute() method I change the input translations using the driver translation too. Then I must modify the driven nodes connecting them to the outputs as well to modify their translation!
That creates a cycle that Maya doesn't like and I'm not really sure if this is the way to go.
What should I do if I want to query and modify information of a connected node at the same time in a custom node?