ScriptSpot

Forum topic · General Scripting

animate

By bporter88 · 2012-11-12

Description

So this might sound outrageously dumb, but I've created an animation in Max and want it to start playing when I run my MaxScript.....I'm presuming this is a really easy command that I'm missing. Any help would be much appreciated.

Thanks!

Comments (1)

br0t · 2012-11-16

No it is not dumb! I had to think about that and actually did not know :D
For simple things like this you can always try to enable the macrorecorder of the maxcsript listener and see what it prints out when you click on the play button:

actionMan.executeAction 0 "50021"  -- Time: Play Animation

So you could use that, but that is kind of cryptic. Better would be to use the function that is exposed for this

playAnimation

which you can find in the MXS docs when you search for "Time Control"

Cheers