Home Website Youtube GitHub

MirrorControls doesn't work depends on ctrl name

There may already be someone who has asked a similar question, but sometimes MirrorControls does not work correctly.
It seems that if the guide Name contains an uppercase L, it causes problems.

After reading mirror_controls.py, it appears that when searching for the symmetrical controller, the script replaces L and R across the entire name string.

The diagram is simplified, but in the case of a controller named ‘sleeveLong’, which contains an uppercase L, the right-side controller corresponding to ‘sleeveLong_L0_fk0_ctl’ should be ‘sleeveLong_R0_fk0_ctl’.

However, due to the global replacement, the generated name becomes ‘sleeveRong_R0_fk0_ctl’, which results in the symmetrical controller not being found.

You didn’t ask a question. :grin:

But yes, this is what the code does, and has for many years. I quickly learned to avoid uppercase R and L in my guide names.

Alternatively, you could modify the code yourself to only replace the correct portion of the string.