Announcement

Collapse
No announcement yet.

Check V-Ray revision command ?

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

  • Check V-Ray revision command ?

    Hi,

    is there some command to check V-Ray revision with python or mel ?

    regards,
    Rasto

  • #2
    In the latest nightlies, you can probably use the "vray version" and "vray build" commands, but for older builds the only option is to parse the first line of the vray4maya_log.txt file in the temp folder.

    Best regards,
    Vlado
    Last edited by vlado; 14-05-2013, 04:54 AM.
    I only act like I know everything, Rogers.

    Comment


    • #3
      Oh, this will be quite useful!

      I'm querying via python right now:
      Code:
      cmds.pluginInfo("vrayformaya", query=True, version=True)
      This can be matched against what's in the top portion of an .ma scene file, the part that says "requires ..."
      Best Regards,
      Fredrik

      Comment


      • #4
        Fredrik it's only version number, not revision number.

        Comment


        • #5
          Vlado what number you mean with latest ? We have v22501 rev22993.

          Originally posted by vlado View Post
          In the latest nightlies, you can probably use the "vray -version" and "vray -build" commands, but for older builds the only option is to parse the first line of the vray4maya_log.txt file in the temp folder.

          Best regards,
          Vlado

          Comment


          • #6
            Then you can use "vray version" for the version number and "vray build" for the build number (turned out you don't need the hyphen before "version" and "build").

            Best regards,
            Vlado
            I only act like I know everything, Rogers.

            Comment


            • #7
              thx Vlado.

              import maya.mel as mel
              version = mel.eval("vray version")
              build = mel.eval("vray build")
              print version, build


              Originally posted by vlado View Post
              Then you can use "vray version" for the version number and "vray build" for the build number (turned out you don't need the hyphen before "version" and "build").

              Best regards,
              Vlado

              Comment


              • #8
                Is it safe to say that

                build = Maya plugin revision
                version = V-Ray core "engine" version, vray.exe, the one that's also used for managing DR renders

                ...and if so, the number which is often referred to as something along the lines of 2.00.04 etc, what is that (?) and is it possible to fetch this number in a similar manner that @raxto has done with "build" and "version"?
                Best Regards,
                Fredrik

                Comment


                • #9
                  Originally posted by Fredrik Averpil View Post
                  Is it safe to say that

                  build = Maya plugin revision
                  version = V-Ray core "engine" version, vray.exe, the one that's also used for managing DR renders
                  This is correct, yes. Originally I wanted the "version" number to be the version of the Maya plugin, not the V-Ray core, but apparently I didn't made myself quite clear

                  ...and if so, the number which is often referred to as something along the lines of 2.00.04 etc, what is that (?) and is it possible to fetch this number in a similar manner that @raxto has done with "build" and "version"?
                  There is no way to do that for the moment; we can either modify the "version" command to do that, or add a new command - which one do you prefer?

                  Best regards,
                  Vlado
                  I only act like I know everything, Rogers.

                  Comment


                  • #10
                    Great, thanks for clearing that up. It's very nice that you now output the build version next to the plugin version (in Maya's output window). I've been buried in a 2.0 beta for some time here... because of the VFB But it's now hard to turn down two years of development... I just cut a render's total render time in 1/3 by just rendering with the latest nightly build.

                    Regarding accessing the plugin version, it doesn't matter that much. I'd prefer either a third command or a list (['version','build','date']) returned so that I can quickly query and move on.

                    Now when I can query the build number, that's what's most important for us in order to differentiate different (nightly) versions of V-Ray (since the plugin version can be the same for different builds).
                    Last edited by Fredrik Averpil; 26-06-2013, 05:57 AM.
                    Best Regards,
                    Fredrik

                    Comment

                    Working...
                    X