show and hide layer based on an object's state

Aug 01, 2013

I have a rectangle on my base layer which is colored blue in the "normal" state and green in the "selected" state.

I have another layer "102" that has a checkmark on it that it will be placed above the rectangle based on a trigger.

I have created 2 triggers on the rectangle.  One "shows the 102 layer" when the state of the rectangle changes to "selected."  That works fine.  However, the second trigger is coded to hide the layer when the state of the rectangle changes to "normal."  That part isn't working.

I've tested other actions in the trigger (user presses a key, user right mouse clicks) to hide the layer and they all work just fine.

Can anyone help?

Thanks in advance!

11 Replies
Wendy Farmer

Hi Christa

here is a rough sample with 3 images and shows the layer when the state of all are visited.  Hard to say just from the triggers why it's not working.

Maybe you can share your .story file or even just the slide and we can take a look at what's happening in your file.

Walt Hamilton

Two thoughts:

Using "When state is .." to trigger an action is not always reliable. It doesn't mean "When state becomes" although sometimes it works like that.  (Feature request: change the verbiage from "is" to "becomes" and make it work that way.)  It used to work for about four items, but fail if there are more. I don't know if that has been fixed.

Visited is a Normal state, so that trigger will never work.

Follow Wendy's advice.

Christa Novelli

Mine is set up exactly the same way as Wendy's: show a layer when the state of all the pictures is visited. However, I do have five pictures rather than the three in her example.

I cannot share the file or slide due to it having company proprietary information. Perhaps the issue is like Walt stated, the trigger is unreliable when dealing with more than four items. I'll see if I can find another workaround and will report back if I do.

Luciana Piazza

Hello Christa!

Thank you for letting us know the status of your states. If you feel comfortable sharing your course privately with our support engineers, please use this link.

We'd be happy to take a look to better assist you! Once we are finished viewing your files, we will delete the course files from our computers. 

Have a nice day!