-
Notifications
You must be signed in to change notification settings - Fork 119
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Here is a snippet on how to use it
from mgear.core import anim_utils
import mgear.pymaya as pm
namespace = "Girl_Rig_02"
model = "rig" # this can be any node, but recommend to be the top node
model_with_namespace = namespace +":"+ model
ui_host = "armUI_L0_ctl"
combo_attr = "shoulder_rotRef"
control = "arm_L0_fk0_ctl" # the control that will track the space. we can define any control
# for IK/FK this list is always 2 items ["IK", "FK"] and is hardcoded, but for space transfer can be anything
# using this existing function we can collect the combo names, but we need to remove the last one as it adds the special key "++ Space Transfer ++" at the end
key_list = anim_utils.getComboKeys_with_namespace(
namespace, ui_host, combo_attr)[:-1]
anim_utils.ParentSpaceTransfer.showUI(
key_list,
model_with_namespace,
ui_host,
combo_attr,
control,
)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request
Type
Projects
Status
5.1.0