Created
May 10, 2015 07:31
-
-
Save madoodia/bfb2ba91e9ca7009622b to your computer and use it in GitHub Desktop.
playback test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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