Set preferred preset?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
Old 08 August 2006   #1
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 August 2006   #2
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 August 2006   #3
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 August 2006   #4
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

Attached Files
File Type: zip (2.9 KB, 6 views)
Old 08 August 2006   #5
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 August 2006   #6
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

global proc ya_initPrefferedPreset()
	if (`currentRenderer` == "mentalRay")
		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;
			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 August 2006   #7
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

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
Society of Digital Artists

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

All times are GMT. The time now is 11:24 AM.

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