CGTalk > Software > Autodesk Maya
Login register
Thread Closed share thread « Previous Thread | Next Thread »  
 
Thread Tools Search this Thread Display Modes
Old 08-04-2006, 12:10 PM   #1
Undseth
Lord of the posts
 
Undseth's Avatar
 
Join Date: Jan 2003
Posts: 634
Set preferred preset?

What is the purpose of this menu choice which is seen in the "render settings" windows in maya?

I thought i could i save a preset for the mental-ray-tab and make this preset a "preferred" one, to get the render settings to automatically adjust to this from default when i open the render settings for the first time.

Every time i open the render settings for the first time on a new project, the mr tab is always shown with the default settings.

Must i go in and change a script to make mental ray automatically open up with my preferred settings?
__________________
Are you warm, are you real, Mona Lisa?
 
Old 08-04-2006, 12:57 PM   #2
cpan
Biciclist
portfolio
calin p
continental ag
Romania
 
Join Date: Jun 2004
Posts: 1,564
Send a message via Yahoo to cpan
did some mel searches and it seems Alias didn't update the InitialiseNewScene.mel mel file after they did the unifiedRenderGlobals. The set preffered preset only works for Maya Software now, but i'll mess a bit to see if i can get it for mentalray aswell
 
Old 08-04-2006, 03:24 PM   #3
Undseth
Lord of the posts
 
Undseth's Avatar
 
Join Date: Jan 2003
Posts: 634
Im not a pro but i want to say it would be nice to see this preset thingy work.

Thanks for taking the time to look at this Yashu .
__________________
Are you warm, are you real, Mona Lisa?
 
Old 08-07-2006, 08:02 AM   #4
cpan
Biciclist
portfolio
calin p
continental ag
Romania
 
Join Date: Jun 2004
Posts: 1,564
Send a message via Yahoo to cpan
hi undesth,
sorry for this delayed post, my network went down this weekend

but here's the fix, as i promissed
i got it work with all the renderers maya has, not only mr/software render



cpan
Attached Files
File Type: zip initPrefferedFix.zip (2.9 KB, 6 views)
 
Old 08-07-2006, 04:48 PM   #5
Undseth
Lord of the posts
 
Undseth's Avatar
 
Join Date: Jan 2003
Posts: 634
This works nicely.

The common tab in the render settings does not respond to the presets and that ok, but i was thinking that i could perhaps turn off the default "enable default light" in the common tab by editing a MEL file, would this be possible?
__________________
Are you warm, are you real, Mona Lisa?
 
Old 08-07-2006, 05:34 PM   #6
cpan
Biciclist
portfolio
calin p
continental ag
Romania
 
Join Date: Jun 2004
Posts: 1,564
Send a message via Yahoo to cpan
for now, paste this code into the the ya_initPrefferedPreset.mel file, it should work ok.
later i'll look to see if i can get the whole common tab be saved among with the presets aswell, when using mentalray
Code:
global proc ya_initPrefferedPreset() { if (`currentRenderer` == "mentalRay") { miCreateDefaultNodes; setAttr "defaultRenderGlobals.enableDefaultLight" 0; } string $grNodes[] = `renderer -q -globalsNodes (currentRenderer())`; for ($ya_Node in $grNodes) if (`optionVar -exists ($ya_Node + "PreferredPreset")`) { string $pref = `optionVar -q ($ya_Node + "PreferredPreset")`; if (`nodePreset -exists $ya_Node $pref`) { nodePreset -load $ya_Node $pref; } else { warning("Loading of preferred render globals presets failed."); warning("You may want to choose your preferred render " + "globals preset again."); optionVar -remove ($ya_Node + "PreferredPreset"); } } }
 
Old 08-07-2006, 05:34 PM   #7
CGTalk Moderation
Expert
CGTalk Forum Leader
 
Join Date: Sep 2003
Posts: 1,066,478
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 03:33 AM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.