Andrew Kingston wrote:
[posted to rush.general]
Gary Jaeger wrote:
When I make .mi files on the mac using absolute paths for textures,
etc they always end up starting wtih /Volumes/foo. I've gotten used to
using BBedit to batch replace /Volumes/ with //corefileserver/ so that
the pc's can render the files, but is there any way in rush to say
for this .mi file, use //corefileserver/ instead of /Volumes/ wherever
it appears?
(or if anybody knows a way to force maya to write them the way I want
in the first place. I haven't been able to find any way to do that)
. . . . . . . . . . . .
Gary Jaeger // Core Studio
86 Graham Street, Suite 120
San Francisco, CA 94129
(Tel# suppressed)
http://corestudio.com <http://corestudio.com/>
Hi
I could be missing something, but couldn't you just use the
MI_RAY_SUBSTITUTE environment variable when you render the mi.
###
MI_RAY_SUBSTITUTE
An optional list of blank-separated substitution instructions, each
in the form /search/replace/. Any other character besides / will also work.
###
We've used this before to change texture paths from remote servers to
local drives in order to stop the server from getting overloaded & our
network getting choked.
Yes, that will probably work as well, as that appears to
solve the problem at the mentalray end of the pipeline,
instead of at the maya end.
Maybe easier in some ways, too, as you can just jam that
environment variable into the submit script, instead of having
to add 'dirmap' mel commands to all the Maya start up files.
Note: for info on 'dirmap', see the original posting on that:
http://seriss.com/cgi-bin/rush/newsgroup-threaded.cgi?-view+1312
The one nice thing about dirmap, though, is that pathname fixes
are applied at the head of the render pipeline, before the scene
is loaded. This way if maya needs to load any of the data,
the dirmap will correct the filenames before the data is used
by maya. (Or that's how it's supposed to work, anyway)
--
Greg Ercolano, erco@(email surpressed)
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)
|