Adding Pose Target
On 11/02/2014 at 15:00, xxxxxxxx wrote:
I am trying to dynamically add and set pose morph to a morph tag. I've been able to add blank poses to the tag using pose.AddMorph() but I can not seem to figure out how to set the target of that added morph.
On 11/02/2014 at 18:35, xxxxxxxx wrote:
I figured it out, I didn't realize there was a CAMorph class.
On 28/09/2014 at 08:31, xxxxxxxx wrote:
as you managed it, do you like to post a small snippet?
I actually tried:
MoTag = op.MakeTag(c4d.Tposemorph) MoTag[c4d.ID_CA_POSE_POINTS]=True BaseMo= MoTag.AddMorph() Pose_1= MoTag.AddMorph() BaseMo.SetMode(doc, MoTag,c4d.CAMORPH_MODE_FLAGS_EXPAND, c4d.CAMORPH_MODE_REL) Pose_1.SetMode(doc, MoTag,c4d.CAMORPH_MODE_FLAGS_EXPAND, c4d.CAMORPH_MODE_REL) MoTag.InitMorphs() BaseMo.Apply(doc, MoTag, c4d.CAMORPH_DATA_FLAGS_ALL) Pose_1.Apply(doc, MoTag, c4d.CAMORPH_DATA_FLAGS_ALL) #it´s not working with # Pose_1.SetBit(c4d.BIT_ACTIVE) # print Pose_1[c4d.ID_CA_POSE_TARGET] # print Pose_1.GetFirst()
But, no success!
Thanks in advance
On 29/09/2014 at 18:37, xxxxxxxx wrote:
You can't set the active pose morph via python and is only available through C++ :frowning2: