Problem: Is there an event that can be triggered when an object is shown or hidden in the timeline?
ActivePresenter version: 8.3.2
OS: MacOS 10.15
Problem: Is there an event that can be triggered when an object is shown or hidden in the timeline?
ActivePresenter version: 8.3.2
OS: MacOS 10.15
Hi Noel,
Thank you for your suggestion.
We will consider adding the feature to our TODO list and try to support it in the future.
Regards,
Yen
Thanks Yen.
Such functionality would significantly add to the flexibility and power of ActivePresenter.
Noel
Happy Holidays!
Is there anyway to do this yet?
Object Visible? Event
Object Hidden? Event
I don’t know if this is possible via the GUI but you could do something with JavaScript.
if (prez.object("myObjName").visible() == true) {
// do something
}
or the reverse
if (prez.object("myObjName").visible() == false) {
// do something
}
Hope that helps.
Thank you so much for your help, Greg. You are very much appreciated.
I guess my life would be a lot easier if I learned Javascript. I can see how that would indeed help, but because of my own ignorance, I still have too many questions on how to incorporate the javascript to use it for my advantages, and I hate bugging people with questions that I should honestly try to figure out on my own. (Such as…if I wanted to add a value to a variable when an object is shown (realize there is difference between visible and shown after reading the manual), would I have to declare the var again for js, or can I revert to the GUI? and "How do I execute the js once the object is shown?..)
Anyway, your help and time is always very appreciated, especially for those like me who haven’t learned enough.
Still hoping “On Show” or “Object Visible” would be an event on the GUI.
Enjoy your holidays and have a GREAT 2025!
What event is causing the object to show in the first place?
Could you just update the variable on the same event?
In the case where you need to check the visibility of the object later - you can use the JavaScript… or perhaps check against the value you have set with your variable.
T/F conditions on selecting numerous objects (4-9 depending upon object to be shown).
Have 7 to show altogether. When all 7 are shown, something needs to happen. Just thinking it would be easier to create and adjust var when each obj is shown.
Yes - the approach I would take is to create a variable to track.
Does the learner get to change their selection?
If so, you’ll need to build in a way to update the flag(s) appropriately - either by subtracting on a wrong choice or toggling multiple variables.
If not, a single flag will suffice and you could simply add one for each correct choice and check if it is equal to seven later.
Hope that helps -
Yeah, they can change. It’s a tedious process, but I’ll do it the hard way.
Thank you for your help, Greg. I hope you have a Happy Holiday!
And you too, Atomi developers! (But I’m still wishing for the featured request)
JavaScript could possibly make shorter work of it.
If you have a sample - perhaps I can write something that you could copy and paste to the other selections and just modify the particulars.
I know…and I know you would. I just don’t feel right asking you.
It also won’t change my need for it later on another project. (old saying: “Give a man a fish, he’ll eat for a day. Teach a man to fish, he’ll eat for a lifetime.”)
I’ll either have to learn js myself or, hopefully, they’ll add the feature.
But you just might not realize how helpful you are!
Sure - but don’t hesitate to ask for help as you go if you’re stuck
If you want to start studying…
Here’s a couple resources specific to ActivePresenter and one that isn’t
And the manual has some great JavaScript information as well.
Have an awesome remainder of the holiday season!
Happy Holidays to you all!
Thank you so much for your help, Greg!
Roxie, I just wanted to share another approach besides using JavaScript. You can use object states for this case:
Hope this helps!
Regards,