Maya Python copying keys from transform to blendshape weight

Maya Python copying keys from transform to blendshape weight

adnanmg
Advocate Advocate
525 Views
0 Replies
Message 1 of 1

Maya Python copying keys from transform to blendshape weight

adnanmg
Advocate
Advocate

Hi,

 

I want to copy a keyframe value from a transform of one object to a blendshape weight. Unfortunately it seems that copyKey and pastKey commands need the attributes to have the exact same name as far as I can tell. 

 

cmds.copyKey(SourceNode, t=(startTime,endTime), at='translateY', o="curve")
cmds.pasteKey(blendNode, at='blendShapeTarget', o='replace')

Perhaps I am just doing it wrong? Any help would be appreciated.

 

Thanks,

 

Adnan

0 Likes
526 Views
0 Replies
Replies (0)