Announcement

Collapse
No announcement yet.

API V-Ray Scene Access error

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

  • API V-Ray Scene Access error

    Hi all,
    When i try this :

    Code:
    g = findByName("surface2@matte")[0]
    print getPluginParams(g, getValues = True)
    I have this :

    Code:
    # Error: line 0: global name 'values' is not defined
    # Traceback (most recent call last):
    #   File "<maya console>", line 1, in <module>
    #   File "/usr/autodesk/maya2011-x64/vray/scripts/vrayExecPostTranslateScript.py", line 8, in <module>
    #     exec script
    #   File "<string>", line 10, in <module>
    #   File "/usr/autodesk/maya2011-x64/vray/scripts/vray/utils.py", line 30, in getPluginParams
    #     return p.params(values)
    # NameError: global name 'values' is not defined #
    Is it a bug ?

    Maya 2011 Linux64 last stable.
    www.deex.info

  • #2
    Yes, it is a bug. Sorry for the inconvenience. I just fixed it and it should work in the next nightly. But if you can't wait till tomorow you can fix it yourself - open [MayaDirectory]/vray/scripts/vray/utils.py, go to line 30 and change the variable "values" to "getValues"
    V-Ray for Maya developer

    Comment


    • #3
      Yep, i will do this.
      Thank you.
      www.deex.info

      Comment

      Working...
      X