mgear-dev / rigbits

Rigging tools and boilerplate functions for rigging.
MIT License
10 stars 14 forks source link

Facial rigger #28

Closed tokejepsen closed 5 years ago

tokejepsen commented 5 years ago

From discussion with @miquelcampos in #27, this is a replacement PR.

Facial Rigger

Replacement for Eye Rigger and Lips Rigger. Basically just a tabbed wrapper for the tools, but with backwards incompatible changes, so old tools have been moved to "Legacy" submenu.

Also common code between the two tools are refactored to a lib module.

Lips Rigger

Rotation Channels Expose rotation channels on all controls.

Orient Controls

Orient the controls to better fit the model. Before when you had lips on creature like a crocodile, the controls would be forward facing but should be facing the sides instead. The orientation is taken from the joints for best alignment.

Eye Rigger

Remove maximum restrictions from vtrack and htrack I felt that 0-1 wasn't always enough, so lifted the maximum restrictions on the vTrack and hTrack attributes.

Vertical/Horizontal tracking settings I exposed the Vertical and Horizontal tracking to the UI and config.

Import and Export settings directly This is a biggy since its not backwards compatible with older *.eyes files.

Previously the tool was assigning UI settings to a list wrapped in a dictionary. This made it very tricky to work with older *.eyes files since a certain number of arguments were expected. By mapping the UI attribute names directly to the build method with a dictionary, we can import *.eyes files and populate the UI without knowing the quantity of settings. We also don't have to remember to update the export method, since it'll just look at its own __dict__ for attribute names.

Aim Controller option You can assign an aim controller, so you don't duplicated controller when used with shifters eye component.

Add joints group option You can assign a joints group/parent, so the rig ends up playing nicer with mGear visibility controls.

Fix for https://github.com/mgear-dev/rigbits/issues/24

Fix screwed lookat transforms on right side There was some odd offset transforms that caused the vTrack and hTrack on the right side to behave odd.

Let me know if there is something I haven't explained well enough.

tokejepsen commented 5 years ago

This is ready for testing and merging.

miquelcampos commented 5 years ago

@tokejepsen Great! I will check it today. Thank!

miquelcampos commented 5 years ago

@tokejepsen merge is done, thanks