Forum Discussion

DrewKunkel-376d's avatar
DrewKunkel-376d
Community Member
8 months ago

Triggers & Layers

Is it possible to trigger something on a base layer from the status of objects on another layer? 

On the attached slide, I want each of the objects at the top of the base layer to change to a custom "complete" status when each of the objects on one of the layers have been visited. I thought I set it up to do that, and it didn't work. I've now adjusted a few things so it's not the way I originally had it, but I think it should still work and it's not.

Any suggestions?

  • Yes, it is possible, because the slide and all its layers are considered one slide. The trickiest part is be sure you have an action that will definitely initiate the trigger. “Change state of XYZ to completed when …” is what it would look like.

    I’m not where I can look at your file right now, but here are a couple of suggestions. “When state of ALL X, Y, Z can be tricky. There used to be a limit to how many objects you could put in the list and expect it to work. That may or may not have been improved. Also there is slight chance the layer could be closed before the system has checked the state of the objects. Change the state before you hide the layer.

    At any rate, if you have a one-to-one correspondence, you have more reliable options. When each object is clicked (I know they are, because clicking is how they go into visited state), use that click to change the state of the object on the base.

    • DrewKunkel-376d's avatar
      DrewKunkel-376d
      Community Member

      Thanks for your suggestion. I was trying to avoid having a "when clicks" on for each object, mostly because I couldn't figure out why the trigger I was using didn't work. But I did break down and add those additional triggers and it worked!

  • LisaGeggie7's avatar
    LisaGeggie7
    Community Member

    This has been a good thread to read... When I trigger it this way, the learner sees the completed state before the layer opens. Is there a way to trigger it so that doesn't happen? I know I have done it before, but the last few times I have done this, the completed state shows and then the layer opens. I would love to know how to fix that!

     

  • Lisa,

    You might try a transition to the layer, and trigger the state change when the animation ends. Or you can place a line motion path on an object on the layer that moves when the timeline starts on the layer. Give it a length of 0, and trigger the state change when it ends.

    • LisaGeggie7's avatar
      LisaGeggie7
      Community Member

      I never thought of that!!!!! Good ideas! I will try that with the project I am working on that has this issue! Thank you for the help! :) I appreciate it!

  • Nedim's avatar
    Nedim
    Community Member

    Your trigger to change the state of the Order button on the base layer should have worked. Disabling all triggers except one on the Order# layer, as illustrated in the screenshot below, reveals that the issue does not lie within the states themselves. By isolating triggers, you can identify the specific one causing the problem. This method helps determine whether any trigger or the last trigger is the culprit. Re-enabling all triggers and subsequently disabling the last trigger can help in troubleshooting. Does this resolve the issue?