Skip to content

[BUG] Range Switch doesn't work for switching FK to IK overtime #488

@TaoYeApple

Description

@TaoYeApple

🐞 Bug Report

Description

Range Switch doesn't work for switching FK to IK overtime (it worked for IK to FK)

Steps to Reproduce

  1. Go to menu: mGear - Shifter - Guide Template Samples
  2. Build the whole character
  3. use Range Switch to convert to IK mode in the right click context menu

Expected Behavior

Limb switched to IK mode and bind joints stay not moved.

Actual Behavior

If using regular Biped Template Y-up, switching FK to IK will not match
If using any game templates, error will raise when

Maya Version

  • Maya Version: 2025
  • OS: macOS

mGear Version

  • mGear Version: 5.0.6

Error Log Formatting

select -cl  ;
select -r arm_L0_fk2_ctl ;
Not found node:arm_L0_roll_mth 
Can't find object : arm_L0_roll_mth
select -r arm_L0_ik_ctl ;
select -r arm_L0_fk2_ctl ;
Not found node::arm_L0_roll_mth 
Can't find object : arm_L0_roll_mth
# Traceback (most recent call last):
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/anim_utils.py", line 2279, in doItByUI
#     self.transfer(startFrame, endFrame, onlyKeyframes, self.hasIkRot)
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/anim_utils.py", line 2254, in transfer
#     self.bakeAnimation(
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/utils.py", line 236, in wrap
#     raise e
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/utils.py", line 233, in wrap
#     return func(*args, **kwargs)
#            ^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/utils.py", line 205, in wrap
#     raise e
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/utils.py", line 202, in wrap
#     return func(*args, **kwargs)
#            ^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/anim_utils.py", line 1910, in bakeAnimation
#     worldMatrixList = self.getWorldMatrices(
#                       ^^^^^^^^^^^^^^^^^^^^^^
#   File "/usr/local/apps/mgear/local/maya-2025/scripts/mgear/core/anim_utils.py", line 1820, in getWorldMatrices
#     tmp.append(pm.getAttr(n + ".worldMatrix", time=x))
#                           ~~^~~~~~~~~~~~~~~~
# TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Not found node::arm_L0_roll_mth 
Can't find object : arm_L0_roll_mth
Not found node::arm_L0_roll_mth 
Can't find object : arm_L0_roll_mth

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

5.0.7

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions