Hi everybody,
I'm new in this forum so let me introduce myself.
My name is Maxime, I'm Lighting TD at Supamonks .
We're currently experimenting on Vray Python Access but we've encountered some difficulties with lists... I've sent an e-mail to chaos group support but I haven't got feedback regarding this point.
We've tried to set lists (like colors in a ramp) with the post translate script but it returns the following error :
def postTranslateScript():
import vray.utils
ramp = vray.utils.findByName('ramp1')[0]
if 0:
colors = ramp.get('colors')
colors.pop()
# This line will warm: // Warning: line 1: Invalid value given for parameter "colors" in plugin "ramp1". //
ramp.set('colors', colors)
else:
# This line will warm two: // Warning: line 1: Invalid value given for parameter "colors" in plugin "ramp1". //
vray.utils.pluginmodifier._setParam(ramp._name, 'colors', (12, ['ramp1_color_0', 'ramp1_color_1']))
So, it seems that lists cannot be used in python scene access...
Am I right ?
Thanks,
Max
I'm new in this forum so let me introduce myself.
My name is Maxime, I'm Lighting TD at Supamonks .
We're currently experimenting on Vray Python Access but we've encountered some difficulties with lists... I've sent an e-mail to chaos group support but I haven't got feedback regarding this point.
We've tried to set lists (like colors in a ramp) with the post translate script but it returns the following error :
def postTranslateScript():
import vray.utils
ramp = vray.utils.findByName('ramp1')[0]
if 0:
colors = ramp.get('colors')
colors.pop()
# This line will warm: // Warning: line 1: Invalid value given for parameter "colors" in plugin "ramp1". //
ramp.set('colors', colors)
else:
# This line will warm two: // Warning: line 1: Invalid value given for parameter "colors" in plugin "ramp1". //
vray.utils.pluginmodifier._setParam(ramp._name, 'colors', (12, ['ramp1_color_0', 'ramp1_color_1']))
So, it seems that lists cannot be used in python scene access...
Am I right ?
Thanks,
Max
Comment