Skip to content

Instantly share code, notes, and snippets.

@madoodia
Created May 10, 2015 07:31
Show Gist options
  • Save madoodia/bfb2ba91e9ca7009622b to your computer and use it in GitHub Desktop.
Save madoodia/bfb2ba91e9ca7009622b to your computer and use it in GitHub Desktop.
playback test
def play_objects(self):
# 2. Act on every cloth based on cloth_set objectSet and uncheck Active checkbox from over to under
print "in play_objects method"
obj_list = cmds.sets('cloth_set', q=True)
for each in obj_list:
# deactive Active checkbox in its properties
shape = cmds.listRelatives(each)
self.isolate_toggling_objects(shape)
print each
cmds.setAttr(str(shape[0]) + '.active', 1)
# 3. play the scene
cmds.play(forward=True)
# mel.eval('playButtonForward;')
print "here"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment