PDA

View Full Version : Startup Resolution & Presets


Abominable
07-23-2003, 06:10 PM
A couple quick ?'s,

1. Where can I find the script in which I can change the maya default startup resolution from 320/240 to my own for startup? I know how to make my own presets to select from inside the attr editor for the globals, but I want to change the startup rez.

2. How do I get a hold of the codes for Image Formats,

ex. setAttr defaultRenderGlobals.imageFormat 19;

19 = Targa, where can I find the others?


PS. On the new Alias site can anyone access the downloads? (Yes, I'm logged in, but the screen just cycles back to the title screen each time...Over 850 Community Downloads, blah, blah...and thats it, nuthin.) Similar problem anyone?

Thanks :shrug:

GDC
07-23-2003, 06:50 PM
"start up res", by this do mean the size of the maya window?
If so, this is stored in your prefs. In windows this is in

C:/Documents and Settings/USER/My Documents/maya/VERSION/prefs/windowPrefs.mel

The line your looking for is the MayaWindow line.

For a list of image formats, look inside the renderGlobalsWindow.mel script in AW/Maya/scripts/others.

They are all defined inside a proc called createImageFile.
Depending on the OS you are on you get different choices.

--g

Abominable
07-23-2003, 07:27 PM
GDC,

Cool man, I got the image formats for NT, thanks.

About the resolution, I was looking to change the default startup resolution for rendering from 320/240 to say 640/480 or 720/486 etc. When I startup Maya, its usually at the 320/240 preset, I just wanted to be able to have it automatically default at my own custom size for test rendering without going into the render globals and having to change it each time I open maya.

I believe it to be in the same script (renderGlobalsWindow.mel ), but just not sure if this is the right area implement it. Line number 3229 in the script ( Set defaultResolution to default values )...I think...still diggin'

From here I can change the default value for render resolution to whatever, but it doesn't affect the startup render resolution

*EDIT* Or in the area of line 299 (proc int[] getGlobalsResolution ) in the renderWindowPanel.mel ?, Anyway maybe I'll just stay with my script I have to change things after I open Maya.

Thanks

GDC
07-23-2003, 08:58 PM
yeah, it seems like Maya always resets it's self to 320X240.

You could in your script change it with

setAttr defaultResolution.width 640;
setAttr defaultResolution.height 480;

Or put those lines in your userSetup.mel and Maya should always render to that resolution. (I think, never tried it)

--g

Abominable
07-23-2003, 10:25 PM
Yeah, I've been using that so it will switch it to 720/486, but only after I have started Maya.

I tried sourcing it as a seperate script in usersetup.mel but for some reason Maya won't go for it. Other scripts in there work fine, it seems to load, but just not affect anything in your globals once your in. O well, whats another couple clicks to get what I want anyway...

Thanks GDC

CGTalk Moderation
01-15-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.