API V-Ray Scene Access error

Hi all,
When i try this :

g = findByName("surface2@matte")[0]
print getPluginParams(g, getValues = True)

I have this :

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

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 /vray/scripts/vray/utils.py, go to line 30 and change the variable “values” to “getValues” :slight_smile:

Yep, i will do this.
Thank you.