Hello,
This is my first attempt at creating a component for Mgear.
It’s been a very interesting process to learn how the whole thing works.
In addition to my own idea, I’ve incorporated ideas from other users I found on the forum.
MOUTH_03 COMPONENT:
The mouth_03 component is basically a direct control, a type of FK control
(except for the Z-axis rotation, which works slightly differently),
that allows you to dislocate the jaw (I haven’t set any limits on the jaw’s translation
for greater freedom, although I recommend setting some limits in a Custom Step).
If we want a Z rotation equal to a normal FK control, we’ll use the JawOffset control. This control does
not detect lip collisions.
It also allows you to add a Set Driven Key control compatible with SDK Manager, and, like mouth_02, a
jaw_Offset control.
We can disable lip collisions, teeth collisions (this is an idea from Jason_Schleifer in a forum post),
and we can enable and control the amount of Z-axis movement of the lips upon collision (pouting).
If we disable lip collision, teeth collision is automatically disabled as well, even if its parameter is on
(it doesn’t make sense to me that teeth collide but not lips).
New Guide settings:
Global mouth_03 parameters:
New jaw control visibility parameters:
lipsOut ON:
collision Teeth OFF:
MOUTH_03 COMPONENT BEHAVING AS MOUTH_01 OR MOUTH_02:
The component has an option to behave as mouth_01 and, if we activate add_jaw Offset option, as mouth_02.
But with the possibility of adding an SDK group and the same options to enable/disable lip collision,
tooth collision, and lip movement in Z (pouting) upon collision.
In this case, I’ve tried to keep all the original logic intact, except for minor changes to the hierarchy and
new logic additions,
to allow me to add the new features (SDK, lipsOut, lips collision, teeth collision, etc.).
Another minor adjustment I made was to change the position of the jawOffset control shape for easier
selection, and I changed its color to a “pale red” to make it easier to differentiate from the main Jaw
control.
But basically, it’s the same as the Mouth_01 and Mouth_02 controls with the same collision detection
system (different from that of Mouth_03).
Parameters of mouth_03 behaving as mouth_01 or mouth_02:
HOW SWITCH A GUIDE RIG FROM MOUTH_03 TO MOUTH_01 OR MOUTH_02 AND VICEVERSA:
If we already have guides of type mouth_01 or mouth_02 and want to switch to mouth_03,
we must select “mouth_C0_root” and, in Extras Attributes / Comp Type, enter mouth_03.
After that, important, select Mgear / Shifter / Update Guide. The same process applies if we want
to switch from mouth_03 to mouth_01 or mouth_02.
Steps for switching guides:
If the MGear team thinks this might be useful for other users, and they want to test it,
please let me know and tell me how I can send you the code.
Thanx,
Llorenç






