Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
window -e -tlc 1 1 polyTexturePlacementPanel1Window; |
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
#assumes target objects are selected, but really they should be found from network nodes | |
root = pm.group(name = 'GenChar') | |
voe.import_references() | |
pm.select(root, r=1) | |
pm.mel.eval('searchReplaceNames "Fkel_" "Skel_" "hierarchy";') | |
pm.mel.eval('isolateSelect -state 1 modelPanel4;') | |
#double check which pane |
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 pymel.core as pm | |
import vo_maya.core.vo_export as voe | |
reload(voe) | |
def weights_to_xml(object, xmlpath): | |
xmlfilename = object.name().split(':')[1] + ".xml" | |
pm.deformerWeights(xmlfilename, path = xmlpath, ex = 1, deformer = object.listHistory(type = 'skinCluster')[0]) | |
def xml_to_weights(filename, xmlpath): | |
meshname = filename.split('.')[0] |
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 pymel.core as pm | |
layers = pm.ls(type="displayLayer") | |
for item in layers: | |
if 'defaultLayer' in item.name(): | |
pass | |
else: | |
current_viz = item.getAttr("visibility") | |
print(item, current_viz) |
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 MASH.editor; MASH.editor.updateMASHEditor() | |
import MASH.api as mapi | |
import pymel.core as pm | |
# there's no reason to use pm, force of habit | |
# best to use cmds for implementation | |
name = pm.ls(sl=1)[0].name() | |
MASH.deleteMashNode.deleteMashNode('MASH1') | |
network_mash = mapi.Network() |
OlderNewer