Hi Justin, It does not seems to work. The value returned is the number of attributes that are keyed.
sel = cmds.ls(sl=True)[0] kf = cmds.keyframe(sel, query=True, keyframeCount=True) print kf Eg. 1. Create a sphere (no animation keyframe) > run the above code > returns '0' as the result 2. Create a sphere (do a single keyframe, or hit 'S' key) > run the above code > returns '10' as the result -- 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/65a4c866-3bb5-4e02-9bce-1bee55bef381%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
