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.
I noticed that when object has any keyframe animation connecting attributes works as expected but only inside keyframed interval.