Created
September 12, 2012 14:53
-
-
Save KelSolaar/3707166 to your computer and use it in GitHub Desktop.
Katana - Hotrender
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
import NodegraphAPI | |
from Katana import RenderManager | |
from Katana import Nodes3DAPI | |
renderNode = NodegraphAPI.GetNode("default") | |
camera = "/root/world/cam/render_Camera" | |
for frame in range(1001, 1072): | |
NodegraphAPI.GetNode("rootNode").getParameter("currentTime").setValue(frame,0) | |
Nodes3DAPI.RenderNodeUtil.SyncOutputPorts(renderNode) | |
RenderManager.StartRender(node=renderNode, hotRender=True, frame=frame, views=[camera], ignoreROI=True, asynch=False, interactive=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment