/********************************************************************** This script is provided as part of the Daz Script Documentation. The contents of this script, and\or any portion thereof, may only be used in accordance with the following license: Creative Commons Attribution 3.0 Unported (CC BY 3.0) - http://creativecommons.org/licenses/by/3.0 To contact Daz 3D or for more information about Daz Script visit the Daz 3D website: - http://www.daz3d.com **********************************************************************/ // Source: /public/software/dazstudio/4/referenceguide/scripting/api_reference/samples/rendering/render_to_viewport/start // Define an anonymous function; // serves as our main loop, // limits the scope of variables (function(){ // Get the viewport manager var oViewportMgr = MainWindow.getViewportMgr() // Get the active viewport var oViewport = oViewportMgr.getActiveViewport(); // Clear the render oViewport.setView( undefined ); // Finalize the function and invoke })();