// =========================================================================== // 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. // =========================================================================== // // // // // disableRenderabilityAttrs (string $shapeName) // // // None // // // Script for disabling the renderability attributes on a shape, including: // primaryVisibility, castsShadows, motionBlur, visibleInReflections, // visibleInRefractions, and receiveShadows. // // // string $shapeName: the shape that the command will act on // // // To disable the renderability of a sphere that is used as a container for // dynamic attributes, but does not need to be rendered: // // disableRenderabilityAttrs nurbsSphereShape1; // // // ///////////////////////////////////////////////////////////////////////// // Method: disableRenderabilityAttrs // // Description: // Script for disabling the renderability attributes on a shape, including: // primaryVisibility, castsShadows, motionBlur, visibleInReflections, // visibleInRefractions, and receiveShadows. // global proc disableRenderabilityAttrs(string $shapeName) { setAttr ($shapeName+".primaryVisibility") 0; setAttr ($shapeName+".castsShadows") 0; setAttr ($shapeName+".motionBlur") 0; setAttr ($shapeName+".visibleInReflections") 0; setAttr ($shapeName+".visibleInRefractions") 0; setAttr ($shapeName+".receiveShadows") 0; }