Hello
After baked motion caputuer data to mGear rig, I tried to use SpaceTransfer without UI.
I wrote script like below and excused.
from mgear.synoptic import utils
import pymel.core as pm
model = pm.PyNode(':rig')
ikfk_attr = 'arm_blend'
uihost = 'armUI_L0_ctl'
fks = ['arm_L0_fk0_ctl', 'arm_L0_fk1_ctl', 'arm_L0_fk2_ctl']
ik = 'arm_L0_ik_ctl'
upv = 'arm_L0_upv_ctl'
trans = utils.IkFkTransfer()
trans.execute(model,ikfk_attr,uihost,fks,ik,upv,ikRot='arm_L0_ikRot_ctl',switchTo='ik')
It seemd worked, but result was different from created by UI.
âarm_L0_ikRot_ctlâ was not baked.
I investigated mgear/synoptic/utils.py
In utils line 1556
ui.transfer(startFrame, endFrame, onlyKeyframes, ikRot, switchTo="fk")
I thought âswitchTo=âfkââ may overwite my scriptâs âswitchTo=âikââ.
So I changed âfkâ to âikâ, then it worked and I got the same result to UI.
Is it correct??