// EJL Normal Check // By Eric Lyman - mezza550@gmail.com // 3-28-07 // revised and made much simpiler on 10-15-07 global proc EJL_normalCheck() { string $focus = `getPanel -withFocus`; int $state = `modelEditor -q -twoSidedLighting $focus`; modelEditor -e -twoSidedLighting (!$state) $focus; int $state = `modelEditor -q -twoSidedLighting $focus`; if ( $state == 1 ) { print "EJL Says: Normal Check is OFF\n"; } else { print "EJL Says: Normal Check is ON\n"; } }