In the past I’ve been able to show/hide scene objects by passing target.id as a group selector (as discussed here).
This time I’m trying to show/hide groups of annotations in the same way.
First I make a variable to hold a list of objects (nulls) in my scene.

Then I attach an annotation for to each null.

Next, I can show and hide them by setting display style to “block” or “none” by targeting the first variable I setup.

However, if I attempt to pass the target.id to this puzzle, it doesn’t work. I’ve tried to pass it directly or with the “list, GROUP” workaround. Neither has worked.


I could use a series of if/else statements to isolate which target the user is clicking, but it seems like there should be a way to pass the target.id directly to the puzzle without the extra bulk of a logic statement. Is there a way to do this?