mgear-dev / mgear4

mGear v.4.x.x (python 3 ready) https://mgear4.readthedocs.io
MIT License
266 stars 94 forks source link

Mirror function doesn't work with custom side labels #294

Open joji2468ng opened 1 year ago

joji2468ng commented 1 year ago

swapSideLabel(name) function is hard coded to work with capital L and R. This is where the trouble is happening.

This issue has been already fixed in the pull request https://github.com/mgear-dev/mgear4/pull/285#issue-1910012135

The fix involves swapping the side label in control names based on the rig’s naming convention. It should handle dynamically by using guide data’s naming patterns to identify and swap the current side label, e.g., from ‘L’ to ‘R’ and vice versa."

Reported: http://forum.mgear-framework.com/t/control-mirroring-broken/3687