def modifyGear(self, teeth):
# When the slider is changes, this method will be called.
# First we will update the label that displays the number of teeth
# the str() function converts the number into a string
cmds.text(self.label, edit=True, label=str(teeth))
# If there is a gear already made, then we will set the slider to edit it
if self.gear:
self.gear.changeTeeth(teeth=teeth)
评论列表
文章目录