show and hide layer based on an object's state
Aug 01, 2013
By
Rhonda Dick
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
See attached file. I tried to replicate your setup and it works for me. The only thing I did differently, is the trigger that hides the layer. I set it up so it fires when the state of the rectangle IS NOT selected vs. is normal. Hope that's what you wanted.
Hi Rhonda! Hope Michael's solution works for you, just let us know if you need anything further.
Yes, it works! Thank you so much!
Great Rhonda! Thanks for providing an update!
Whenever I click on the .story files in these discussions I just get a screen of gibberish. How do I download and the arrow to the left of the file doesn't download.
Hi Gael!
I have seen some users have issues with 'older' files in the forums. Let's first be sure that is not the issue.
Try the link attached here.
I know this is a very old thread, but I am also running into this issue. I've tried it two ways, neither of which works. See attachments. Any ideas?
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.
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.
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.
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!