def uiUpdateStartFrame(self, *args):
'''
Update the UI text with the new frames when the slider is updated.
'''
self.startFrame = mc.intSliderGrp(self.uiSlider, query=True, value=True)
for b,f in zip(self.uiButton, self.frameMarks):
frame = f+self.startFrame
mc.button(b, edit=True, label=str(frame), annotation='Go to frame %i' % frame, command='import maya.cmds;maya.cmds.currentTime(%i,edit=True)' % frame)
评论列表
文章目录