Tool to Simplify Import and Export of Skeletons in Maya.
This tool will export or import joint information within the scene or your selection. Data we export is index order, world position, orientation, and hierarchy.
- Maya Version
- Maya 2022 and Up
- Download newest release from github.
- Export Zip files contents to your module folder.
- Example location : C:\Users\USER_NAME\Documents\maya\2022\modules
- If maya is open restart the software.
- Once maya is opened a new shelf should be added called "Joint_Transfer"
- If you haven't already install the module.
- Select the custom shelf "Joint_Transfer"
- Select the the import button.
- If changes exists in the scene a warning will appear. Recommended workflow is to use a new scene or save scene first.
- A window will pop up choose your json file containing exported data.
- If you haven't already install the module.
- Select the custom shelf "Joint_Transfer"
- Select the the export button.
- If Joint is selected option will pop up to export only selection. If you select no the entire scene will be exported.
- A window will pop up choose your json file location.
- Export will be saved to your specified location.
This tool was made in mind if we wish to automate it. While the option to choose your selection or warn the user if changes exists is helpful. It makes it hard to batch through existing files.
To handle this the entire tool is accessed through custom maya commands.
- Import Command
cmds.jointImport() # this is the user version where we get the pop ups
- Export Command
cmds.jointExport() # this is the user version where we get the pop ups
- JointTransfer
""" Args: filepath or f (str) - specify location to export or import type or t (str) - takes either import or export to specify type of operation. selection or sl (bool) - specify if you wish to use selection or use the entire scene. """ cmds.jointTransfer(filepath="\dev\export.json", type="import", selection=True)