This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import maya.OpenMaya as OpenMaya | |
| import pymel.core as pm | |
| import maya.OpenMayaAnim as OpenMayaAnim | |
| import maya.cmds as cmds | |
| import maya.mel as mel | |
| class checkMaxSkinInfluences(object): | |
| ''' This script takes a mesh with a skinCluster and checks it for N skin weights. | |
| If it has more than N, it selects the verts, so you can edit them. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import maya.cmds as cmds | |
| import os as os | |
| import maya.mel as mel | |
| # Description | |
| # This tool will export selected mesh(es) as an FBX | |
| # It will name each export the same as the Maya file you export from, but with the character's namespace replacing the first part of the file name. | |
| # File naming is expected to be "<name of character>_alltheothershit.extension" like "male_idleToWalk.ma" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This is a helper FBX class useful in accessing and modifying the FBX Scene | |
| Documentation for the FBX SDK | |
| http://help.autodesk.com/view/FBX/2015/ENU/?guid=__cpp_ref_index_html | |
| Examples: | |
| # instantiate the class, as seen below with a path to an FBX file | |
| fbx_file = FBX_Class(r'c:\my_path\character.fbx') | |
| #get all of the scene nodes | |
| all_fbx_nodes = fbx_file.file.scene_nodes() | |
| # remove namespaces from all of the nodes |