What is the best way that I can check if (a) controllers are using pre/post 
(cycle) infinity?

Currently I am using the following:
# Get the first frame used in all controllers
first_frame = cmds.findKeyframe(controller_selections, which="first")
# Get the last frame used in all controllers
last_frame = cmds.findKeyframe(controller_selections, which="last")

# Execute my method to set key towards all controllers (see below for the 
cmds.bakeResults)
anim_bakeout(controller_selections, (first_frame, last_frame))

as a way to enforce all controllers within a rig are keyed at all frames.
for ctrl in controller_selections:
    cmds.bakeResults(
        ctrl,
        hierarchy="both",
        preserveOutsideKeys=True,
        simulation=True,
        time=(first_frame, last_frame)
    )


This is done so that it does not messed up the `cmds.bakeResults` should I 
should be baking a certain frame range.

However, while doing the above pre-checking, if my rig in scene does have a 
lot of controllers (eg. a creature rig which has about 300+ controllers), 
the process can be slow?

-- 
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/c504fc76-eea8-4daf-8830-883a0270d993%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to