Hey guys I’m just getting started in using codes in maya for my rigs and I have a question, how can I say to maya :
For each new frame, add MyObject.Attr1 to MyObject.Attr2 ?
In my instance, I want to have control over an object’s rotation by animating the number of turns per second and if I simply say MyObject.RotateX = (MyObject.TurnsPerSec * 360 * time1.OutTime) / 24, I can’t make it slow down without reversing the direction of the rotation.
This is why I need to add a value each frame instead of simply myultiplying my value with the number of frames ^^
Thank you very much 
Or at least it’s the most efficient way to do it I’ve got so far