Hi, I am adding a reference array to the control group for space switching. When I get the right-click menu, all of them are named as parent attach ik. How can I rename them properly?
“the control group”. What component? And can you show a screenshot of what you mean?
Hi,
Currently, I am using control_01 and adding a reference array for space switching. It is named as attach_hand_l0_ctl and it would be helpful if the name appeared as attach hand instead of attach ik.
1 Like
Hi, I found the solution to rename the attributes in the forum but does anyone know how to rename it in dropdown menu?
I am fairly certain that would be found under core/dagmenu.py and you’d likely have to edit some code in there. Any code edits at this level would probably require a Maya restart before they take effect.
Thanks. I will check it
I finally found it to where modify it.
in mgear_dagmenu_fill function, this part for populating the name for the space switches.
if ui_host:
for attr in _get_switch_node_attrs(ui_host, "ref"):
part, ctl = (
attr.split("_")[0],
attr.split("_")[-1].split("Ref")[0].split("ref")[0],
)
#custom part reformating the name for attachment control to be shown as attach hand L instead of attch ik
if "attach" in attr:
part, ctl = (
attr.split("_")[0],
' '.join(attr.split("_")[1:3]),
)