Hi Gang,
is it possible to have vray resolve env-variables inside pathnames? That would be awesome…
cheers
Oli
Hi Gang,
is it possible to have vray resolve env-variables inside pathnames? That would be awesome…
cheers
Oli
Hello? Nothing on this one?
It is not terribly hard to implement; I will make note for it. On Linux that would be done using $variableName though.
Best regards,
Vlado
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 ![]()
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%
Hope to hear of this cool new stuff soon ![]()
cheers
Oli
Hello,
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
Thanks Teodor.
I would like to know which one of these methods you are using, in case we export a vrscene :
1: The vrscene file contains “${var}”.
In that case, the value is the one found on the computer that renders the scene.
2: The vrscene file contains the value that is inside ${var}.
In that case, the value is the one found on the computer that exported the vrscene.
Cheers
alainfx:
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.
/Teodor
Nice, thanks !
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…
cheerio
Oliver
We only implemented it for textures and other render assets like photometric files. Will make a note about the output file name.
Best regards,
Vlado
I nearly forgot: THANK YOU VERY MUCH GUYS!!!
This support is outstanding…
Hi again,
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.
/Teodor
Thx Teodor,
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…
cheers
Oliver
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.
cheers
Oliver
Hi,
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.
/Teodor
Thx…I’ll let you know as soon as i encounter a problem with that…