Simple sinppet that gives you keyframe data for each blendshape target

for attr in cmds.listAttr('blendShape1.weight', multi=True):
    print attr, cmds.keyframe('blendShape1', attribute=attr, q=True, tc=True
, vc=True)



On Thursday, March 17, 2016 at 11:48:28 AM UTC-7, Paul Thurston wrote:
>
> Hey y'all, so I'm trying to write a tool that can export animation data to 
> a text file. I don't want to just print values for every frame, instead I 
> would like to export only values at keyframes. 
>
> I have it working for transform data by using maya.cmds.GetAttr() to get 
> data and maya.cmds.keyframe() to get a list of keyframes. However I have 
> not been able to get keyframe() to give me a list of keyframes for blend 
> shape animations which is a requirement for this tool. Are there any other 
> methods that I could try that could give me a list of blend shape 
> keyframes? 
>
> Thanks, 
> Paul

-- 
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/b9820364-f7ce-4dda-b78b-fa8fe7986886%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to