This file contains 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 urllib, urllib2 | |
import re | |
import os | |
import shutil | |
import time | |
class downloaderClass(object): | |
def __init__(self): | |
self.v = False |
This file contains 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 base64, json | |
from PySide.QtCore import * | |
from PySide.QtGui import * | |
filename = 'C:/image.jpg' | |
# save to json | |
f = open(filename, 'rb') | |
img_data = f.read() | |
f.close() | |
enc_data = base64.b64encode(img_data) |
This file contains 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 om | |
import maya.cmds as cmds | |
def getUvShelList(name): | |
selList = om.MSelectionList() | |
selList.add(name) | |
selListIter = om.MItSelectionList(selList, om.MFn.kMesh) | |
pathToShape = om.MDagPath() | |
selListIter.getDagPath(pathToShape) | |
meshNode = pathToShape.fullPathName() |
This file contains 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 om | |
import maya.cmds as cmds | |
def edgesIsSmooth(name, edgeArray): | |
selList = om.MSelectionList() | |
selList.add(name) | |
selListIter = om.MItSelectionList(selList, om.MFn.kMesh) | |
pathToShape = om.MDagPath() | |
selListIter.getDagPath(pathToShape) | |
shapeFn = om.MFnMesh(pathToShape) |
This file contains 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 PySide.QtCore import * | |
from PySide.QtGui import * | |
lineWidth = 3 | |
rows = 4 | |
columns = 6 | |
color = 'red' | |
class UnderlinedItemClass(QWidget): | |
def __init__(self): |
This file contains 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
def htoaEnv(data): | |
# print '>>',data | |
# return | |
# ver = open(join(data['modules_htoa'],'current_version.txt')).read() | |
path = None | |
if os.path.exists(data['modules_htoa']): | |
for f in os.listdir(data['modules_htoa']): | |
if f.startswith('htoa'): | |
hou_version = join(data['modules_htoa'], f, 'scripts/python/htoa/build.py') | |
if os.path.exists(hou_version): |
This file contains 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 pymel.core import * | |
import maya.OpenMaya as om | |
from imath import * | |
from alembic.Abc import * | |
import alembic | |
import math | |
def get_mesh_data(): | |
selection = om.MSelectionList() |
This file contains 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 pymel.core import * | |
import maya.OpenMaya as om | |
from imath import * | |
from alembic.Abc import * | |
import alembic | |
import math | |
def get_mesh_data(): | |
selection = om.MSelectionList() |
This file contains 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 om | |
from imath import * | |
from alembic.Abc import * | |
from alembic.AbcGeom import * | |
import alembic | |
import math | |
def get_mesh_data(): | |
selection = om.MSelectionList() |
This file contains 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 om | |
from imath import * | |
from alembic.Abc import * | |
from alembic.AbcGeom import * | |
import math | |
import alembic | |
def get_mesh_data(): | |
selection = om.MSelectionList() |
OlderNewer