Hello Maya coders !
I'm having a weird issue right now using the bakeresults command in Maya
2016.5 (aka ext2)
I've built a test scene with 500 locators constrained to 500 others that
have a simple animation on 400 frames (Parent Constraint)
When I bake the animation to fcurve using the MEL
It's done in a about 40s
When I do it in Python it takes almost 5 minutes
I had to set simulation to False in Python otherwise... it's taking even
longer... I wasn't able to get it to finish (I left it running for 2 hours)
Any idea ? any tips on baking a bunch of controllers that are constrained
to something ?
*MEL*
timer -s;
bakeResults -simulation true -t "1:400" -sampleBy 1 -disableImplicitControl
true -preserveOutsideKeys true -sparseAnimCurveBake false
-removeBakedAttributeFromLayer false -removeBakedAnimFromLayer false
-bakeOnOverrideLayer false -minimizeRotation true {"slave", [...],
"slave500"};
timer -e;
// Result: 25.241 //
*Python*
from datetime import datetime as dt
import maya.cmds as cmds
start = dt.now()
cmds.bakeResults("slave", [...], ["slave500"],
simulation=False,t=(0,400),sampleBy=1,disableImplicitControl=True,preserveOutsideKeys=True,sparseAnimCurveBake=False,removeBakedAttributeFromLayer=False,removeBakedAnimFromLayer=False,bakeOnOverrideLayer=False,minimizeRotation=True)
print dt.now() - start
>>> 0:04:44.691000
Thanks,
Jeremie
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CAKq4km-qgWqQZpVMa9biYMuTTvSh8GiKdfM7y1xmNYZ%2BeivpKQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.