On 24/04/2015 at 01:36, xxxxxxxx wrote:
code snipped of a script tag. has a userdata with a link to a specific vraydistance shader:
vrayshader = op[c4d.ID_USERDATA,1]
print vrayshader[c4d.VRAY_SHADERS_LIST] # returns shader type // 54 == distance
if vrayshader[c4d.VRAY_SHADERS_LIST] == 54:
print vrayshader[c4d.ID_SW_OBJECTS 1_209556393] # should return include list for objects assign to the distance shader
the mayor problem is that the [c4d.ID_SW_OBJECTS 1_209556393] are causing a syntax error.
so is there a way to avoid that and read and write the include list of an vray shader? all other values exept the [c4d.VRAY_SHADER_LIST] are creating the same issue as the include list.