Expanding variables in image names

Hey,

We want to be able to swap easily between half/full res versions of our textures. The easists way I think would be to use a variable, eg:

\textures\texture_$SIZE.exr

And then we can swap size for “full” or “half”.

But i cant get this working. I know vray does this for $U and $V for tiles, is there a way to add new variables?

Cheers!

Nick D

Dont worry, worked it out. It only works on directories, eg
putenv “TEST” “FULL”
\$TEST\texture.exr
will eval to
\FULL\texture.exr

Actually, no, doesnt work. Works fine in mental ray, but not in vray. Does vray support variables like this?

We just talked exactly about that. And since we really liked the version tag from Maya/Mray we would love to get something like this back in.

In fact it should work, but the format is a bit different.
The correct format is ${my_env_var} instead of $my_env_var.
You need relatively new build for this to work.

Check you change log files for lines like this one:
“Ability to specify environment variables in bitmap file names and other assets with ${var}”
to verify that the build you’re using has this feature.

/Teodor

Thanks Teodor, ill check it out