Website Youtube GitHub

mGear Framework Forum

Parenting to a control inside a component

I’ve got a new mouth component I’m creating, and in it I’m creating two controls that represent the sides of the mouth.

I’d like to be able to parent additional components to them - much like you can with parenting regular components - but when I parent a new component (say control_01) to these controls in guide mode, the controls aren’t being parented properly when the rig is built.

Is there a trick to tagging an object as parentable?

It is done in the setRelation method
image

The first group establish the relation between the guide object and the component object

second is for control tags and pickwalk, and the third s for joints (the numbers are the joint index from the list self.jnt_pos)

1 Like