PDA

View Full Version : toggle Flat shaded


bjoern
03-27-2005, 06:50 PM
Hi

knows anyone a toggle script between "Flatshadet All" and "SmoothShaded All"?

thx for any Help !! :)

DezFX
03-28-2005, 02:16 AM
Here you go:
string $currentPanel = `getPanel -wf`;
string $panelType = `getPanel -to $currentPanel`;
if ($panelType == "modelPanel")
{
string $currentShading = `modelEditor -q -displayAppearance $currentPanel`;
if ($currentShading == "flatShaded")
modelEditor -e -displayAppearance smoothShaded $currentPanel;
else
modelEditor -e -displayAppearance flatShaded $currentPanel;
}

bjoern
03-28-2005, 05:07 AM
thank you DezFX!

bssss, i love the talk. Do a question, go to bed, stand up, and the
answer is there :-)

thx!!

CGTalk Moderation
03-28-2005, 05:07 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.