API Bug with Occurrence.isLightBulbOn when the Occurrence is a child occurrence

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
The isLightBulbOn property is supposed to return whether the light bulb (small grey eye) of an occurrence is on or off. The isVisible property is supposed to return false, if the light bulb of this occurrence or any higher level occurrence is off and otherwise true.
The problem is that isLightBulbOn and isVisible return the same for an occurrence if a higher level occurrences light bulb is false.
Additionally setting isLightBulbOn to True for an occurrence with a higher level occurrences light bulb being false, does't necesseraly sets it to True, instead it toggles it (if it was false before it sets it to true, if it was true before it sets it to false).
So if you run the following code on an occurrence with a higher level occurrence having isLightBulbOn == False
it returns False:
occurrence.isLightBulbOn = False #sets the light bulb to False, everything works fine
ui.messageBox(str(occurrence.isLightBulbOn)) #this will return False as it should
occurrence.isLightBulbOn = True #sets the light bulb to True, everything works fine
ui.messageBox(str(occurrence.isLightBulbOn)) #this will return False but should return True, in the browser, the light bulb is on
occurrence.isLightBulbOn = True #sets the light bulb to False, should do nothing, now in the browser the light bulb is off again
This only happens with occurrences, with bodies it works fine.
I guess this is a bug in the Fusion API, there already was a post but i wasn't answered correctly.
Thanks for helping.