PDA

View Full Version : FlatView were mouse is


Levitateme
04-28-2003, 03:03 AM
Hi there, I know nothing about mel. I am really serious about learning it, i oredered that book by david gould. I have over the last few days been looking at soem scripts. I like the flat shaded mode for maya. I couldnt find a way to press a key to get that mode to work for my view port. I took the script by using Echo in script editor. I placed in flatshaded. It took some work for me casue im so new to this. But it works great, If you have your mouse over a view port and want a flat shaded mode, same as pressing like the 5 key. Except its flat shaded.

I was wondering can someone explain somethings to me if they read this?
Can someone tell me what " $" symbol means? What it does?


{
string $currentPanel = `getPanel -underPointer`;
if ("" == $currentPanel) {
$currentPanel = `getPanel -withFocus`;
}
if ("" != $currentPanel) {
string $panelType = `getPanel -typeOf $currentPanel`;
if ($panelType == "modelPanel") {
modelEditor -edit -displayAppearance "flatShaded" -displayTextures off
-displayLights "default" $currentPanel;
} else if (`isTrue "MayaCreatorExists"` && `scriptedPanel -exists $currentPanel`
&& `scriptedPanel -query -type $currentPanel` == "dynPaintScriptedPanelType") {
dynPaintEditor -edit -displayTextures 0 -displayAppearance "smoothShaded"
-displayLights "default" $gDynPaintEditorName;
}
}
};

CGTalk Moderation
01-15-2006, 12:00 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.