Skip to content

Instantly share code, notes, and snippets.

@hogjonny
Last active December 11, 2015 19:29
Show Gist options
  • Save hogjonny/1977933a7a3eb4d8f586 to your computer and use it in GitHub Desktop.
Save hogjonny/1977933a7a3eb4d8f586 to your computer and use it in GitHub Desktop.
# 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