[Closed] referencing maxObjectTab data in script controllers
I’m refencing an objects transform from a maxObjectTab in a script controller but not getting any realtime updates. Anyone know whats going on?
ive appended the tab using the:
(nodeTransformMonitor node:obj forwardTransformChangeMsgs:true)
The script controller is on the objects transform and i’m referencing the node in the script controller, and pointing to its attributes via:
“obj.customAttribute[index of object].node.transform”
But it’ll only refresh its new transform upon re-evaluation. I’ve tried this with nodeTab to noavail either.
I never tried it that way, maybe because of the maxObject array it doesn’t pass on the transform notification. Have you tried it with just a maxObject with a node transform monitor (no maxObjectTab)? Another thing I found that you just add a controller that you’re sure of has animation (maybe a global controller), it will force the scriptcontroller to update, without you ever using the actual controller value.
Something to try maybe…
Cheers,
-Johan
Hey man,
Yep maxObject/node is fine, it always sends the reference. I like the controller idea – I’ll give it a go.