How can I assign switching between IK and FK for the arms and legs to the Anim Picker switches in mGear?
It would be helpful if it was in plain English.
How can I assign switching between IK and FK for the arms and legs to the Anim Picker switches in mGear?
It would be helpful if it was in plain English.
If you look in the mGear folder, you will find a template.
mgear_X.X.X/anim_picker_samples/biped.pkr
If you load that template, it has a button to switch IK and FK. You can use that template. Or you can copy the script and put it in your own button.
Hello Chris,
I am using the script from the picker but the script on the picker is not working for the arms.
I am getting
“Can’t find object : arm_L0_ikRot_ctl
Can’t find object : arm_L0_ikRot_ctl
AttributeError(”‘NoneType’ object has no attribute ‘hasAttr’")"
So maybe the script on the picker is an older version? would you happen to have the newest available? Thanks
I’m not aware of anyone maintaining or updating those scripts. (There might be!)
As for not finding that arm_L0_ikRot_ctl
object, did you change your naming convention, or are you using a component different than the biped template? If so, the script might need customization for your own structure/pipeline.
arm_L0_ikRot_ctl
I think is a control that exists when you have separate translation/rotation controls. In your guide settings, if you chose to uncheck this, that might explain why that control no longer exists. And the script could potentially be updated to have an if statement to check if it exists or not (to support both options).
Or if you aren’t comfortable with Python, one could potentially hack it by adding a fake transform node with that arm_L0_ikRot_ctl
and arm_R0_ikRot_ctl
name. That might cause other side effects. I’m not at a Maya workstation to test it right now.
This bug report might be related. It seems to be referring to the same ikRot control.
And this, and potentially a few other threads: IK FK Arms Switch
So there might be a good opportunity for someone to update the script to handle the different configurations.