Instance Id problem with render pick chop

when i create a number of geo instances and use the render pick chop with an event callback to print instanceIds, all the instances report their instance id when clicked except the first instance, which doesnt return anything.
I used a modified version of the instance texturing snippet

renderPickInstanceID.toe (11.4 KB)

Hi @swampmonster

in the onEvent callback you are using an if statement that checks on the instanceId.
As the value 0 equates to False, the condition is not met and the print not executed.

You can check if the event.instanceId is not equals to -1 instead or check if event.pickOp resolves to an operator instead of None with if event.pickOp:

cheers
Markus

of course. in my mind, for no reason, i was using event.instanceId as if it were a boolean. thank you once again, Marcus.