Announcement

Collapse
No announcement yet.

Expanding variables in image names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #2
    Dont worry, worked it out. It only works on directories, eg
    putenv "TEST" "FULL"
    \$TEST\texture.exr
    will eval to
    \FULL\texture.exr

    Comment


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

      Comment


      • #4
        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.

        Comment


        • #5
          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
          V-Ray developer

          Comment


          • #6
            Thanks Teodor, ill check it out

            Comment

            Working...
            X