PDA

View Full Version : Autoload Wireframe on shaded?


pukvete
10-28-2004, 02:44 PM
Yo. I read the manual and followed the instructions on how to autoload mel-scripts.

I put userSetup.mel in .../maya/6.0/scripts/ and in userSetup.mel the line

modelEditor -e -wos 1 modelPanel4;

which is the command to enable wireframe on shaded.


This doesn't work though. Nothing wrong with the script since I tested other mel
commands in the file and it executed the commands when maya started.

I really want wireframe on shaded to be default so I also tried saving a default scene with
'wos' enabled and opened maya through default.mb instead, but maya bugs out and claims
'wos' is enabled but objects won't display the wire!

Is there anyone out there who can help me get this thing sorted?!

Andreyev
10-29-2004, 08:48 AM
it happends because Maya runs the userSetup before it generates the panels.

So it just cannot find modelPanel4 when it runs your userSetup, I guess.

Otherwise you can put your command in the end of the buildNewSceneUI.mel and buildDefaultSceneUI.mel scripts, before the las "{" (found in Maya/scripts/startup folder).

as for me everything is working now.

dudders
10-29-2004, 09:49 AM
Put this in your userSetup.mel

//wos and smooth on scene open

scriptJob -e "NewSceneOpened" "modelEditor -edit -displayAppearance smoothShaded -activeOnly false modelPanel4;" -permanent;

scriptJob -e "NewSceneOpened" "modelEditor -e -wos 1 modelPanel4;" -permanent;

//end of wos and smooth on scene open

pukvete
10-29-2004, 01:13 PM
Thanks a Bundle! Now it works.:thumbsup:

CGTalk Moderation
01-19-2006, 05:00 PM
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.