Hello!
I am trying to script some animation-related tool and I am encountering into some issues in which I think there may be a better way to process them as I am pretty much hard-coding them into my current too/ doing it in a roundabout manner.
- What is the best way that I can script such that if an object that has static keyframes (keyframed at different frames, but the values remains the same ) and removing all keyframes (akin to
break connections
)?
Currently what I have done is: Select the objects > iterating all the attributes and its values (eg. {"object01" : {"translateX": 3, "translateY":10}, ..}
) and storing them into a nested dicts >
then comparing the values between keys… It somewhat worked in my cause but it does not seems to be ideal?
Looking for a better way to handle this…
- 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?
In my current code, I am hardcoding it to find blendParent1
but there are times where blendParent3
is created instead in some of the objects in which I have hard-coded them as well…
Any ideas for this?
Many thanks in advance for any replies!