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
#python | |
import lx | |
import lxu.select | |
def isVisible(): | |
scn_svc = lx.service.Scene() | |
curScn = lxu.select.SceneSelection().current() | |
chan = curScn.Channels(None, 0.0) | |
chanRead = lx.object.ChannelRead(chan) |
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 | |
getaxis = cmds.upAxis(ax=True, q=True) | |
if getaxis == 'y': | |
cmds.upAxis(ax='z', rv=True) | |
elif getaxis == 'z': | |
cmds.upAxis(ax='y', rv=True) |
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
"""Pass in a string to remove the vowels and spaces""" | |
def disemvowel(t): | |
v = 'aeiou ' | |
print "".join([l for l in t.lower() if l not in v]) |
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
#python | |
""" | |
Modo: print all import paths to the event log. | |
""" | |
import lx | |
platform = lx.service.Platform() | |
pathCount = platform.ImportPathCount() |
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 csv | |
import pymel.core as pm | |
import math | |
import random | |
import re | |
import maya.mel | |
pm.setAttr('perspShape.farClipPlane', 10000000) | |
file = '/Users/widenale/Desktop/MayaProject/NewYorkSorted.csv' |
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 pymel.core as pmc | |
w=150 | |
class awAttributeAdder(): | |
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
# Extremely old from a project that got canceled. | |
# This is not a great method of creating a picker as it does not work cross-OS | |
# due to an indexing issue with Maya on OS X(and maybe Linux). | |
# When I was originally writing this, I was on Windows only at the time | |
# Anyway, I would write PySide/Qt and not this. | |
import maya.cmds as cmds | |
from functools import partial | |
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
#python | |
""" | |
Forgot to make a selection set of skinned bones before detaching the weights so I figured why waste 10 minutes | |
figuring out which bones to grab when I can just make Python do it in less than 2 minutes? | |
""" | |
import os | |
myDir = '/Users/alexwidener/projects/rigging/Ruslan/skins/skin1' | |
f = [] |
NewerOlder