Announcement

Collapse
No announcement yet.

classid for vray versions

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

  • classid for vray versions

    Hi Vlado,

    is it true that vray() is something like a shortcut to enable the installed vray renderer without knowing the full version string?

    Or should I rely on classid?

    thank you,

    Georg
    In Polygongewittern - Industrial Parametrisation of the World
    http://www.preset.de/
    http://www.count-as-one.net/

  • #2
    Code:
    RendererClass.classes
    This will return all the installed renderes in an array.
    Search for the string "V_Ray" to know which number is the one assigned to vray.

    Lele

    Comment


    • #3
      Code:
      renderers.current=vray()
      Works well, if that's what you mean?
      Eric Boer
      Dev

      Comment


      • #4
        what does this script do?
        if you find a bug...kill it.

        Comment


        • #5
          Loads V-Ray as the current renderer
          Eric Boer
          Dev

          Comment


          • #6
            Thanks.

            I knew this renderers.classes and vray().
            I guess I was looking for known classids for different(older) vray versions.

            Background:
            My psd2mat script should be able to support other renderers, too.
            Not every renderer offers such a nice shortcut like vray().
            So I wanted to implement somekind of API that can switch and detect a renderer based on its classid - regardless which sub.sub.subversion it is installed. I don't want to have a id-then-elseif nightmare to catch all possible renderers.
            As I was told the the classid stays the same for main branches.

            In the meantime I changed my script and I don't need to know the renderer string at all.

            Georg
            In Polygongewittern - Industrial Parametrisation of the World
            http://www.preset.de/
            http://www.count-as-one.net/

            Comment

            Working...
            X