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 | |
from os.path import join as joinpath, split as splitpath | |
class FileNotExist(IOError): | |
pass | |
def hasNumbers(inputString): | |
return any(char.isdigit() for char in inputString) |
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
from os import path | |
import compileall | |
import sys, types | |
def recompile(modulename): | |
"""Recompile the given module, its directory's contents!""" | |
myScriptPath = sys.modules[modulename.__name__].__path__[0] | |
if path.isdir(myScriptPath): | |
compileall.compile_dir(myScriptPath, force=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
// Copyright: Kumaran | |
function getSelectedComps(){ | |
var allItems = app.project.items; | |
selectedComps = new Array(); | |
for (var i = allItems.length; i >= 1; i--) { | |
eachItem = allItems[i]; | |
if ((eachItem instanceof CompItem) && eachItem.selected) { | |
selectedComps[selectedComps.length] = eachItem; | |
//$.writeln(eachItem.name); |
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
#------------------------------------------------------------------------------- | |
# Boiler Plate Code for Windows | |
# By : Kumaran | |
import pymel.core as pm | |
class UI(pm.uitypes.Window): | |
_TITLE = "mkWindow" | |
_LAYOUT = "mkLayout" | |
_DOCKCONTROL = "mkDockCtrl" |
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
#------------------------------------------------------------------------------- | |
# Boiler Plate Code for Windows | |
# By : Kumaran | |
import pymel.core as pm | |
class UI(pm.uitypes.Window): | |
_TITLE = "mkWindow" | |
_LAYOUT = "mkLayout" | |
_DOCKCONTROL = "mkDockCtrl" |
OlderNewer