Skip to content

Instantly share code, notes, and snippets.

View naritomo1984's full-sized avatar

TOMO naritomo1984

View GitHub Profile
@naritomo1984
naritomo1984 / Convert2MIAmat.py
Created October 31, 2015 03:54
Convert2MIAmat
objs = pm.selected()
for obj in objs:
sg = pm.listConnections(obj.getShape())[0]
matinfo = sg.connections(t="materialInfo")
tex = matinfo[0].connections(t="file")
pm.sets(renderable=True, noSurfaceShader=True, empty=True, name=str(obj)+"miaSG")
miamat = pm.shadingNode("mia_material_x", asShader =True)
pm.connectAttr(str(miamat)+".message", str(obj)+"miaSG" + ".miMaterialShader")
@naritomo1984
naritomo1984 / Revfoot.py
Last active November 7, 2015 23:39
Reversefoot rig Tool
# -----------------------------------------------------------------------------------------------------------------------------------------------------
#
# Revfoot.py
# v1.0
#
# create the reverse foot rig. Joints position is going to be based on each locator's (position)
#
# Tomonari Michigami
# >>tmnr.net
# >>naritomo@me.com
@naritomo1984
naritomo1984 / trembleEXPR
Last active August 29, 2015 14:17
Shake_EXPR
import pymel.core as pm
import random as rand
objs = pm.selected()
for obj in objs:
pm.addAttr(obj, sn = "Yamp", attributeType = "float")
pm.setAttr(str(obj)+".Yamp", amp)
pm.addAttr(obj, sn = "Zmove", attributeType = "float")