Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
/* cly_toggleCullingShelfButtonSetUp.mel v1.2 Roger Klado was here December 12, 2011 cause no one else will do it fer me RogerKlado@hotmail.com
An Animated Backface Culling Toggle ShelfButton whose Image Toggles as well reflecting applied Culling State In this way, Even when in "shaded mode"... the shelfbutton GUI easily illustrates the actual culling state with a wireframe image.
install icons to your icons folder and run this setup script:
cly_toggleCullingShelfButtonSetUp ( from the command line )
from the shelfButton created... click to toggle the selected poly object's culling state.
Double click to toggle both selected and unselected poly objects's culling state. ( toggle all objects )
the icon will change reflecting the current back face culling state!