filmov
tv
My First Python Script II Learning Python II Python For Maya II ObjectShaderAnimation

Показать описание
I am learning python scripting, and this is my first successfully written the first python script.
Tip: Select any object and put steps according to your requirements and run this script.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
from maya import cmds
def objFaceShader(step=3,strtFrom=0):
allPolyGeo = []
allOtherObj = []
startFrom = strtFrom
steps = step
x = 0
setFstFrm = 1
setEndFrm = 30
for sel in getSelection:
lambartName = ("{}_{}_lambert".format(sel,x))
if len(getShape) == 1:
if getMeshType == "mesh":
else:
for face in allPolyGeo:
objFace = range(startFrom , getFaceNumber , steps)
for allFace in objFace:
else:
print("Already Exist")
"""
print allPolyGeo
print allOtherObj
print getFaceNumber
"""
#Run This Proc
objFaceShader(step=3,strtFrom=0)
#pythonScripting#mayaPython#rigging
Tip: Select any object and put steps according to your requirements and run this script.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
from maya import cmds
def objFaceShader(step=3,strtFrom=0):
allPolyGeo = []
allOtherObj = []
startFrom = strtFrom
steps = step
x = 0
setFstFrm = 1
setEndFrm = 30
for sel in getSelection:
lambartName = ("{}_{}_lambert".format(sel,x))
if len(getShape) == 1:
if getMeshType == "mesh":
else:
for face in allPolyGeo:
objFace = range(startFrom , getFaceNumber , steps)
for allFace in objFace:
else:
print("Already Exist")
"""
print allPolyGeo
print allOtherObj
print getFaceNumber
"""
#Run This Proc
objFaceShader(step=3,strtFrom=0)
#pythonScripting#mayaPython#rigging