Programmatically Load HIK Custom Rig UI Configuration

Programmatically Load HIK Custom Rig UI Configuration

joshua_e_mock
Contributor Contributor
282 Views
0 Replies
Message 1 of 1

Programmatically Load HIK Custom Rig UI Configuration

joshua_e_mock
Contributor
Contributor

Hi All,

I'm trying to find a way to script the load of a custom rig UI configuration with PyMEL or Python. As of right now, I can get the selection window to open by running: 

pymel.mel.eval('hikLoadCustomRigUIConfiguration();')

What I want to do is pass it the path where my custom UI xml file lives. However, I keep getting error messages and I cannot find any documentation for this command. 

// Error: Line 1.40: Wrong number of arguments on call to hikLoadCustomRigUIConfiguration. // 
// Error: file: C:/Program Files/Autodesk/Maya2020/scripts/startup/scriptEditorPanel.mel line 1629: There is no command named "hikLoadCustomRigUIConfiguration". // 
// Error: file: C:/Program Files/Autodesk/Maya2020/scripts/startup/scriptEditorPanel.mel line 1629: Type "help" for general information about the help command. // 

 In addition, it seems that Maya needs the file to live in the C:\Program Files\Autodesk\Maya2020\resources\CharacterControls directory. Is there a way around this? It would be best if we could have this file live somewhere in our project / Perforce directory so that the other tech artists can access it rather than forcing them to load it into their C drive.

0 Likes
283 Views
0 Replies
Replies (0)