[Closed] stop and start cycled animation
Hi
Is it possible to enable or disable the cycle of a keyed animation.
For example a simple box move from left to right with 3 keys in X axis, by curve editor we can cycle this animation.
And my question is is it possible to stop or start by slider or button this cycled animation and the animation .
Thanks in advance
is playAnimation and stopAnimation not what you are looking for?
(details are in the mxs help)
Thanks for the replay
Actually i try to make car’s windshield wiper and it’s rotation, controlling the speed , turn on and off my first try was
mybox = box name: "wiper" length:4 width:4 height:60 pos:[0,0,0] wirecolor:[145,225,85]
rotate mybox (angleaxis -90 [0,1,0])
theCon = mybox.rotation.controller.Y_Rotation.controller = float_script ()
ss = "(sin (F*10))
"
theCon.setexpression ss
Doing this the box get straight ( at the miiddle of the anime ) so i did this
pp = point name:"mainroot" pos:[0,0,0] wirecolor:Red
mybox.parent = pp
rotate pp (angleaxis -90 [0,1,0])
it goes to its initial rot and pos but when i play
playanimation()
s = "(1+sin (F*10))
"
theCon.setexpression s
After all i think that creating an animated box then turn the key.value = 0 and playanimation() change the key time and… would be better one .
But i think the expression is easier but i couldn’t go any further with both of them
I would be grateful for any help
you have to explain better what you want. “play animation, expression, loop animation”… it’s too much to be all in one glass
you are right
for the time being , for the car wiper for the first try if i like to try script controller, could you help me with above script.
I can’t have a full control of the script