After a bit of investigations, i found that after the following changes in RIBsettings.py it starts working again
:(Note this is a workaround, it may be quite slow for lots of lights, but it's working)
That piece of code:
# And, last but not least, output illumination statements
for light in obj.objectList(“objlist:unlightmask”, now):
handle = light.getData(“ri_handle0”)
if handle != None:
Ri.Illuminate(handle, 0)
has to be replaced with the following:
# And, last but not least, output illumination statements
unlightlist =
for light in obj.objectList(“objlist:light”, now):
found = False
for mlight in obj.objectList(“objlist:lightmask”, now):
if light.getName(True)==mlight.getName(True):
found = True
continue
if not found:
unlightlist.append(light)
for light in unlightlist:
handle = light.getData(“ri_handle”)
if handle != None:
Ri.Illuminate(handle, 0)
There is two things I've found:
1. obj.objectList(“objlist:unlightmask”, now) returns empty list all the times
2. probably mistyped “ri_handle0” instead of “ri_handle” in light.getData() call


ops:
