Источник
Maya Normal Map Tutorial from Faint_Sound on Vimeo.
|
|
|
|
|
|
|
|
import maya.cmds as cmds transforms = cmds.ls(type='transform') deleteList = [] for tran in transforms: if cmds.nodeType(tran) == 'transform': children = cmds.listRelatives(tran, c=True) if children == None: print '%s, has no childred' %(tran) deleteList.append(tran) if len(deleteList) > 0: cmds.delete(deleteList)
int $dso[]=`displaySmoothness -q -polygonObject -dv`; int $sm= $dso[0]; if ($sm == 3) {$sm =1;} else {$sm =3;} setDisplaySmoothness $sm