Announcement

Collapse
No announcement yet.

Putting environment variables like %myTexturePath% into vrscene?

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

  • Putting environment variables like %myTexturePath% into vrscene?

    Hi Gang,

    is it possible to have vray resolve env-variables inside pathnames? That would be awesome...

    cheers
    Oli
    OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

  • #2
    Hello? Nothing on this one?
    OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

    Comment


    • #3
      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
      I only act like I know everything, Rogers.

      Comment


      • #4
        Originally posted by vlado View Post
        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

        Originally posted by vlado View Post
        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%

        Hope to hear of this cool new stuff soon

        cheers
        Oli
        Last edited by ultrasonic; 22-09-2011, 01:28 PM.
        OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

        Comment


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

          Comment


          • #6
            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

            Comment


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

              Comment


              • #8
                Nice, thanks !

                Comment


                • #9
                  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
                  OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

                  Comment


                  • #10
                    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 only act like I know everything, Rogers.

                    Comment


                    • #11
                      I nearly forgot: THANK YOU VERY MUCH GUYS!!!
                      This support is outstanding...
                      OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

                      Comment


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

                        Comment


                        • #13
                          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
                          OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

                          Comment


                          • #14
                            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
                            OLIVER MARKOWSKI - Head of 3D at RISE | Visual Effects Studios

                            Comment


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

                              Comment

                              Working...
                              X