def reset(self, *args):
# When we reset, we will intentionally say we're done with this gear, move on to the next one
# So moving the slider now will not adjust an existing gear
self.gear = None
# We will reset the slider value
cmds.intSlider(self.slider, edit=True, value=10)
# And finally reset the label value
# the str() function converts the number into a string
cmds.text(self.label, edit=True, label=str(10))
评论列表
文章目录