On Wed, Aug 8, 2018 at 11:39 AM likage <[email protected]> wrote:
> What is the best way to check and see if an object (or multiple objects)
> have more than 1 animated keyframes as denoted by the red ticks in the time
> slider...
>
> I tried using "cmds.keyframe(sl=False, q=True, tc=True)", however that
> returns me the amount of attributes that are keyframed etc.
>
What about:
if cmds.keyframe(obj, q=True, keyframeCount=True) > 1:
skip()
>
> My objective here will be, if an object is found to have 1 or no animated
> keyframes/ the red ticks, skip it.
>
> --
> 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/1d2f95a1-ed87-4dd9-b20c-0612b127b880%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1d2f95a1-ed87-4dd9-b20c-0612b127b880%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
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/CAPGFgA0wdTYza7VRfT6m6329Qo4z7SsmVcpcz8CtST0kOWQQog%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.