Getting the name of the blendParent name of parentContraint

35 views
Skip to first unread message

yann19

unread,
Aug 14, 2018, 8:15:42 PM8/14/18
to Python Programming for Autodesk Maya
Hello all, I am doing some scripting for animation related and would like some advice.


1. What is the best way that I can script such that if an object that has 2 static keyframes (same values keyed in those 2 frames), remove all keyframes (akin to `break connections`)? I am doing it by iterating all the attributes, then its values and storing them in a list. Followed by comparing 2 lists, each list contains all the keyable values from each frame... Is this the best way?

2. When doing a `parentConstraint`, the attribute - `blendParent` is always created. However is there a command that allows me to grab the blendParent name as soon as the constraint is done?
Currently in my code, it is hard-coded to find `blendParent1` but there are times where `blendParent3` is created instead. 

Reply all
Reply to author
Forward
0 new messages