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 math | |
| def exportCameraChan(obj, st, ed, filename): | |
| bt = pm.currentTime( query=True ) | |
| fd = open(filename, 'wt') | |
| for i in range(ed-st): |
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 hou | |
| def where_did_changed(node): | |
| for child in node.children(): | |
| for parm in child.parms(): | |
| try: | |
| value = parm.eval() | |
| index = parm.componentIndex() | |
| cvalue = parm.parmTemplate().defaultValue()[index] | |
| if value != cvalue: |
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
| $ cd /opt/hfs1x.x.xxx | |
| $ source houdini_setup | |
| $ cd hsvg | |
| $ sudo mkdir oldlibs | |
| $ sudo mv lib* oldlibs | |
| $ sudo mv oldlibs/libgsf-1.so.114 . | |
| $ sudo mv oldlibs/libpangoft2-1.0.so.0 . | |
| $ sudo mv oldlibs/libpng12.so.0 . | |
| $ sudo mv oldlibs/librsvg-2.so.2 . | |
| $ sudo mv oldlibs/libxml2.so.2 . |
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
| #include <cmath> | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <boost/fusion/tuple.hpp> | |
| #include <boost/spirit/include/qi.hpp> | |
| #include <boost/spirit/include/phoenix.hpp> | |
| using namespace std; | |
| using namespace boost; |
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
| ''' | |
| original from http://nathanhorne.com/?p=183 | |
| ''' | |
| import os | |
| import sip | |
| import maya.cmds as cmds | |
| import maya.OpenMayaUI as mui | |
| from PyQt4 import QtGui, QtCore, uic | |
| def getMayaWindow(): |
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 struct import unpack, calcsize | |
| def loadHGT( filename, row, row_length ): | |
| data = [] | |
| try: | |
| f = open( filename, 'rb' ) | |
| format = '!H' | |
| f.seek( row * row_length * calcsize(format) ) | |
| for i in xrange(row_length): | |
| data.append( unpack(format, f.read(calcsize(format)))[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 maya.cmds as cmds | |
| import math | |
| def dump_camera_channels( cameraName, time ): | |
| current = time | |
| shapeName = cmds.listRelatives(cameraName,shapes=True)[0] | |
| tx = cmds.getAttr(cameraName+".tx", t=current) | |
| ty = cmds.getAttr(cameraName+".ty", t=current) | |
| tz = cmds.getAttr(cameraName+".tz", t=current) | |
| rx = cmds.getAttr(cameraName+".rx", t=current) |
NewerOlder