- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey there.
Using Maya 2018 here.
I'm trying to automate my process of adding mocap to a custom rig. I've currently written a script that duplicates the joint hierarchy and loads in my HIK preset definition. However, I can't seem to figure out a way to script out changing the "source" rig in the HIK menus with scripting. I've tried running some procedures from the following Mel files that live within "C:\Program Files\Autodesk\Maya2018\scripts\others\" folder.
"C:\Program Files\Autodesk\Maya2018\scripts\others\hikCharacterControlsUI.mel"
"C:\Program Files\Autodesk\Maya2018\scripts\others\hikGlobalUtils.mel"
These are the procedures I try to run:
# char is a variable string of the name of the HIK character from the .fbx file with the mocap on it
mel.eval('hikSetCurrentCharacter("'+char+'")') mel.eval('hikUpdateCharacterList()') mel.eval('hikSetCurrentSourceFromCharacter("'+char+'")') mel.eval('hikUpdateSourceList()')
This is the part of the UI I'm trying to change using python:
I don't get any error message but nothing changes on the UI. Any help is greatly appreciated. Thanks.
Solved! Go to Solution.