Last active
December 11, 2015 19:29
-
-
Save hogjonny/1977933a7a3eb4d8f586 to your computer and use it in GitHub Desktop.
This file contains 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
# fast easy work around for rendering hardware2/viewport2.0 sequence frames in Maya 2016 | |
# you still need to setup for animation in the 'Render Settings' | |
# Change 'Frame/Animation ext:' pull down, so that each frame will be written out | |
# with name frame padding, etc. | |
import maya.cmds as cmds | |
# Settings | |
startFrame = int(cmds.playbackOptions(q=True, min=True)) | |
endFrame = int(cmds.playbackOptions(q=True, max=True)) | |
for i in xrange(startFrame, endFrame): | |
cmds.currentTime(i) | |
#cmds.ogsRender(width=3840, height=2160, camera='persp') | |
cmds.ogsRender() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment