Skip to main content
teacherzilla
Participating Frequently
October 14, 2020
Question

Can I use an effect to Trigger a change of state?

  • October 14, 2020
  • 2 replies
  • 712 views

I am on the 3rd slide of 3 and want to use a down effect to trigger a change of state of an object. I am moving a molecule across a membrane through a protein, so the protein door has to open, let the molecule move in, then close, then door on the other side opens and the molecule moves out. I have tried using various delay of state options, but it never opens and/or closes at the right time. Any suggestions?

    This topic has been closed for replies.

    2 replies

    Stagprime2687219
    Legend
    October 14, 2020

    Perhaps not ideal for you but I think the effect you're looking for could be pulled off with some JavaScript.
    Please excuse my crude example but this is generically what I picture your scenario needs to do.

    If you're interested I could expand a little further and give some code to play with.

     

    teacherzilla
    Participating Frequently
    October 14, 2020

    Yes, I can see how it can be applied, for sure. I would greatly appreciate any JS code and guidance, as it may be the way I go ultimately, with this animation. 

    Lilybiri
    Legend
    October 14, 2020

    In CP2019 it is not possible to apply an effect to a transition between states, sorry. You will need to revert to a Show/Hide workflow instead of changing states.

    teacherzilla
    Participating Frequently
    October 14, 2020

    Thank you for quick response. Is it possible to time the state change on the 3rd slide to coincide with the action on the 3rd slide? I haven't had luck doing it, but maybe I'm not doing it correctly. 

    Stagprime2687219
    Legend
    October 14, 2020

    Perhaps more like this.

    It is a little smoother.

    It will mostly be about the timing to get  the best look.