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. 

-- 
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/27df9be6-a394-4dbc-a38a-9d32b826f307%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to