Copy link to clipboard
Copied
I can do this to get the elements in/on a slide
...
eventEmitterObj.addEventListener("CPAPI_SLIDEENTER", function(e) {
var elems = e.Data.si;
};
but I need to get the elements in a JavaScript function independent from the slide enter event. Is there some other variable of object I can query to get the elements?
Copy link to clipboard
Copied
Can you explain in more detail?
What are you trying to do?
You can get the si property of any slide. You must first access the slide in question through cp.model.data.project_main.slides
Copy link to clipboard
Copied
How do I get a slide's number using its label so that I can later call a
function to jump to it?
Copy link to clipboard
Copied
You would need to loop through all of the slides and get the lb property, if it matches the label you are looking for, store the index in the variable.
Copy link to clipboard
Copied
Great. Thank you!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now