ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
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.
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"
Comments
No it is not dumb! I had to
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 AnimationSo you could use that, but that is kind of cryptic. Better would be to use the function that is exposed for this
playAnimationwhich you can find in the MXS docs when you search for "Time Control"
Cheers
Never get low & slow & out of ideas