def makeTeeth(self, teeth=10, length=0.3):
# The logic here is exactly the same as in the makeTeeth function we created
cmds.select(clear=True)
faces = self.getTeethFaces(teeth)
for face in faces:
cmds.select('%s.%s' % (self.transform, face), add=True)
# Instead of returning a value, lets just store the extrude node onto the class as a class variable
self.extrude = cmds.polyExtrudeFacet(localTranslateZ=length)[0]
cmds.select(clear=True)
评论列表
文章目录