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
| 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") |
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
| # ----------------------------------------------------------------------------------------------------------------------------------------------------- | |
| # | |
| # 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 |
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 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") |