If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Exciting News: Chaos acquires EvolveLAB = AI-Powered Design.
To learn more, please visit this page!
New! You can now log in to the forums with your chaos.com account as well as your forum account.
Announcement
Collapse
No announcement yet.
Putting environment variables like %myTexturePath% into vrscene?
It is not terribly hard to implement; I will make note for it.
Thx! Maybe many others around here could also tell us if they could use this feature.
EDIT: I think many studios would really appreciate it, cause we could integrate vray much tighter into complex pipelines...PRman style
On Linux that would be done using $variableName though.
Yes i know...maybe you should just implement it this way, even when we are in Window...so everywhere that we need to resolve an env-variable it should read $ENV_VAR and not %ENV_VAR%
I've just implemented this feature and it will be available in the next nightly build.
The code replaces every occurrence of "${var}" with the value of the environment variable "var".
Multiple variables are supported per path.
Please test and report if there are any problems
Teodor
The paths in the vrscene file will contain the unexpanded variables.
For example if you have "${root_dir}/textures/file1.png" in Maya, you should have the same thing in the vrscene file.
And then the variable expansion/substitution will happen during rendering on the rendering machine.
Variant 2 is useless, so we have implemented Variant 1.
Tested on windows and it seems to work...one more thing...would it be possible to have vray resolve the output image name that way as well? did not work here...
I've implemented the env var replacement for the output image, too.
It will be in the next nightly build. Please test and report if there are
any problems with it.
i am at the pixomondo office this week, but i'll try it in my own office as soon as i am back...same applies for the testrendering Linux and Windows from the other thread...
Output filename works now...in general it would be good if it would just work for every filepath if this is possible...i don't know where it still doesn't work and i couldn't test that much, but i think it should also work with irradiance map and lightcache files if it doesn't already.
The variable replacement should work for every path parameter that currently supports VRAY_ASSETS_PATH.
If you find a parameter/attribute, where it doesn't work please report it.
Comment