Simple Layer Revealer (Version 1)

Nice idea to use this for a questionnaire by @h_classen so here we go:

This version introduces some extra class names that can be used as follows:

  • HideAfterChoice all layer, groups or symbols tagged with this class name are hidden after a choice or hidden immediately when revisiting a scene with a choice.

  • ShowAfterChoice all layer, groups or symbols tagged with this class name are hidden/shown immediately when visiting a scene depending on if a previous choice was made and immediately show if after a choice.

Previous choices are stored and checked against hypeDocument.customData based on the scene name, so make sure to name your scenes differently. Just set hypeDocument.customData = {} to purge previous choices if you need that feature.

LayerRevealer_Questionnaire_Edition.hype.zip (68,0 KB)

Use the initial post for simple setups. This one allows for more complex stuff.

4 Likes