// =========================================================================== // Copyright 2018 Autodesk, Inc. All rights reserved. // // Use of this software is subject to the terms of the Autodesk license // agreement provided at the time of installation or download, or which // otherwise accompanies this software in either electronic or hard copy form. // =========================================================================== // // Run this script before saving a file for hardware // rendering test-o-matic tests. // // Last Updated: Sept, 26, 2002 // global proc setSoftwareQualityToProduction() { // Set software to production quality preset. Taken // from renderGlobalsWindow.mel // string $rendQual[] = `listConnections defaultRenderGlobals.qual`; setAttr ($rendQual[0] + ".edgeAntiAliasing") 0; setAttr ($rendQual[0] + ".useMultiPixelFilter") 1; setAttr ($rendQual[0] + ".shadingSamples") 2; setAttr ($rendQual[0] + ".maxShadingSamples") 8; setAttr ($rendQual[0] + ".visibilitySamples") 1; setAttr ($rendQual[0] + ".maxVisibilitySamples") 4; setAttr ($rendQual[0] + ".redThreshold") 0.4; setAttr ($rendQual[0] + ".greenThreshold") 0.3; setAttr ($rendQual[0] + ".blueThreshold") 0.6; setAttr ($rendQual[0] + ".reflections") 10; setAttr ($rendQual[0] + ".refractions") 10; setAttr ($rendQual[0] + ".shadows") 10; updateRenderQuality; } // Set for .#.ext or global proc setSoftwareFrameExtension(int $animate) { if ($animate) { // Animation on setAttr defaultRenderGlobals.animation 1; if (`checkBoxGrp -q -v1 imageCheckBox`) { // Override image file format type setAttr defaultRenderGlobals.outFormatControl 2; } else { // Standard image file format type setAttr defaultRenderGlobals.outFormatControl 0; } setAttr "defaultRenderGlobals.putFrameBeforeExt" 1; setAttr "defaultRenderGlobals.periodInExt" 1; } else { // Animation off setAttr defaultRenderGlobals.animation 0; // No image file format type setAttr defaultRenderGlobals.outFormatControl 1; setAttr "defaultRenderGlobals.periodInExt" 1; } updateFrames; updateExtOptions; updateFileOutputFeedback; // Also update the main render window if it exists. if (`exists updateMainRenderMenu`) { updateMainRenderMenu(); } // And the batch render window if (`exists updateBatchRenderWindowTitle`) { updateBatchRenderWindowTitle(); } } global proc hwRendertestSetup(int $startFrame, int $endFrame, int $byFrame) { // Load the hw renderer hwRenderLoad; string $hwRenderNodes[] = `ls -type hardwareRenderGlobals`; int $i; int $haveHwRenderGlobals = 0; for ($i=0; $i