« Rendering Normal maps in Turtle | Main | Unable to load Substance for Maya 2011 »

01/11/2010

TrackBack

TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a01156fc44c77970b013488a0965c970c

Listed below are links to weblogs that reference workspace.mel :

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

hello Owen,
i read your post. I have problems in maya 2012 osx. Often when i batchrender the image files renders in the last used project. I checked my path and repaired permissions. Has this to do with the lastLocalWS?

thx alex

Can anyone confirm if this has been fixed in Maya 2012? We use a Linux renderfarm and the workspace.mel still seems to get overwritten. It seems to be that when another 2 nodes try saving the file at the same time (which happens constantly on farms) we get incomplete entrys etc...

What on earth posessed them to change this operation and are they going to change it back? - or give us the option to disable it!

This must be wrecking havok on farms the world over!

hey mate! I was just going to reply to my post saying I found it ...I was sifting through the files thinking it wasn't a UI option when I found the newScenePanelConfiguration attr which pointed me back to Win > Pref

Thanks for the reply though! This has resolved a few questions! Much appreciated.

cheers

Hey Nick,

You're correct, the variable that controls the default layout is stored in the "userPrefs.mel" file, and not the "workspace.mel" file.

Artists set the default layout in the Settings/Preferences > Preferences window.

Go to the Interface > UI Elements section, and look for Panel Configurations. Here you can set the layout used when 'Starting new scenes'.

This option is saved in the user's "userPrefs.mel" file as, for example: optionVar -sv "newScenePanelConfiguration" "Single Perspective View";

Other options include (but maybe not limited to):
. "Four View"
. "Persp/Outliner"
. "Persp/Graph"
. "Hypershade/Persp"
. "Persp/Graph/Hypergraph"

Hope that helps,
O

Hi Owen ...is it possible to adjust the way maya launches into the default Persp window on startup? I thought workspace.mel would be a good place to start! However now I'm thinking this would be something in user /prefs since workspace.mel is project centric!

I get asked this allot from our users...

Cheers

@Michal: you're right, what I wrote wasn't entirely accurate; on 'network rendering', the Maya 2011 docs say:

File Access

All files, scenes, and textures you use must be stored in locations accessible to each render workstation. This can be achieved by doing either of the following:

. Providing the files to all the render workstations from a central file server. File permissions must be adjusted for your environment.
. Transferring the files to each render workstation’s local storage.

Owen

Yes, it started with maya 2011, and yes, we set -proj for the command line renders via Rush render que, and yes, it still over-writes the workspace.mel with a short-bus equivalent. The method we currently employ to work around this new "feature" from our great ant overloads at Autodesk is to change permissions on the workspace.mel so it cannot be over-written by maya. Without this, ncaches, images, textures all go bonkers....to use the technical term.

So whatever happened between 2010 and 2011 is one on a long list of should-have-been-caught-in-beta that I keep in a rainbow colored trapper keeper under my desk.

Hope the write permissions tip helps some of you before you become as bald as I am.

Cheers,

-ctj

recommendation to copy entire project folder to rendernodes' local drives is the dumbest thing i heard recently.
sorry for being rude, but sometimes ADSK acts like it's making software for kids, not for production teams (except its price). Do you ever talk to your customers and ask about their pipelines ?

Nevermind the above comment. Guess it was taken out of context.

Either way reading/writing the workspace.mel is still bad. Ever heard of race conditions?

[quote]** If you are rendering from the command line Autodesk recommends you copy the project directory to each render station, and explicitly set the path to the project folder that contains the scene you are rendering by including the “-proj” flag in your command.[/quote]

Are you serious about this???
Copying/syncing the whole project each time for a render is likely to take longer than the actual rendering..

@M Foglia

if you don't switch to shaded/textured mode, you can quickly set the .disableFileLoad attribute on all file textures to avoid loading the textures over the network with for ($file in $fileNodes) {setAttr ($file + ".disableFileLoad") 0;}

Hi,

Thanks for posting this, good stuff to know!

Do you know if there is a way to *disable* maya from falling back on the absolute paths, or to pre-emptively disable a maya scene from loading any file textures or references (besides the options available in the open options [do not load references]), or opening the .ma editing the text? This is in an event where it's not possible to open the scene first and "disable file load", etc on any file nodes, cache nodes, etc.

Here's an example - I am hooked up from home to a VPN to a local network at the office, and I copy the maya scene to my home computer. The bandwidth isn't too good, but the file size of the scene is small. I disable the loading of the reference models, which works OK, but Maya goes to open the 11 MB HDR file for the IBL. Unfortunately, this works (haha), because the absolute path (UNC path for OSX) is valid, since I am logged in to the VPN and all the volumes at the office are mounted and seen as local. So the scene takes about 10-15 min to open while it loads the IBL over a very slow network connection.

I just want to open the scene to edit some animation, and I don't need any file textures to load. Any way to temporary suspend this BEFORE the scene is opened?

Thanks for any help!

Best,

Matt

The comments to this entry are closed.

RSS Feed

  • Subscribe

Share

  • Bookmark and Share