View Full Version : Updating MPxDeformerNode when time changes

08 August 2007, 08:29 AM
I'm modyfying yTwist sample which comes with maya's sdk. I want it to be updated (MPxDeformerNode's update function called) every time time changes, weather it is playback mode or user drags time slider. I have added timeIn attribute and connected it to time1.outTime like this:
connectAttr time1.outTime yTwist1.timeIn
Problem is that it updates only when playback starts but not during playback itself or when I stop playback. Same for dragging time slider, updates only when drag starts, but not during or when drag stops. What can I do to make it work all the time?
Maybe there is another way? timeChanged callback works every time but I don't know how update function could be called from callback function.
Any ideas?

I noticed that when object has any keyframe animation connecting attributes works as expected but only inside keyframed interval.

CGTalk Moderation
08 August 2007, 08:29 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.