A render handler that renders to a new window.
Inherits :
DAZ Script |
---|
DzViewRenderHandler ( Size size, DzTime time, String filename, Boolean isSoftware ) |
TODO: Add detailed description.
DzViewRenderHandler( Size size, DzTime time, String filename, Boolean isSoftware )
Create a new view render handler for rendering a single frame.
Parameter(s):
Example:
// Get the active viewport and camera var oActiveView = MainWindow.getViewportMgr().getActiveViewport(); var oCamera = oActiveView.get3DViewport().getCamera(); // Get the render options var oRenderOptions = App.getRenderOptions(); // Create a handler var oHandler = new DzViewRenderHandler( oRenderOptions.getImageSize(), 0, App.getTempPath() + "/test.jpg", true ); // If we have a valid handler if( oHandler ){ // Set the background color oHandler.setBackColor( oActiveView.get3DViewport().background ); // Get the renderer var oRenderer = oRenderOptions.getActiveRenderer(); // Render, using our handler and options oRenderer.render( oHandler, oCamera, oRenderOptions ); }