I’m using Python to “re-target” morphs. I’ve successfully written code to perform object position and rotation animation, but struggling with morph animation.
So far my code successfully finds the object with a morph tag and obtaining the strength value of a specific morph.
Where I’m failing, is trying to create the CTrack.
For doing this with a position value, I use code:
newtrack_y = clear_objectTrack(targetObj, c4d.DescID(c4d.DescLevel(c4d.ID_BASEOBJECT_REL_POSITION), c4d.DescLevel(c4d.VECTOR_Y)))
But for a morph, I’m using which fails:
newtrack = c4d.CTrack(targetObj, c4d.DescID(c4d.CTmorph))
targetObj is the morph tag.
I expect setting and adding a key to the CTrack will be different as well.
Does someone have an example of Setting Morph strength keyframe with Python?