This content is likely not relevant anymore. Try searching or browse recent questions.
[Feature request] [Slides] Maintain selection order of elements/shapes for Google Apps Script 0 Recommended Answers 0 Replies 3 Upvotes
Use case
We currently have a PowerPoint Addin that we want to bring to Google Slides.
For important functions we rely on the fact that in PowerPoint we can access the elements/shapes selected by the user in the order that the user selected them.
Problem
The ordering of elements in App Script is not guaranteed to be the order of selection of elements/shapes by the user.
if(selection.getSelectionType() == SlidesApp.SelectionType.PAGE_ELEMENT) {
var pageElements = selection.getPageElementRange().getPageElements();
// we expect pageElements to be ordered in the way the user selected the elements
}
We expect (and this is what we get from PowerPoint) that the elements are ordered the way they were selected by the user.
What happens if not implemented
You will lose the battle against Microsoft in the Online Office world.
Seriously, implement this. It should be a quick win.
If for some SelectionTypes the order does not make sense, then skip it.
At least we should preserver the order of basic elements like PAGE_ELEMENT.
At least we should preserver the order of basic elements like PAGE_ELEMENT.
Details
This question is locked and replying has been disabled.
Link to post
Delete post?
This will remove the reply from the Answers section.
Notifications are off
Your notifications are currently off and you won't receive subscription updates. To turn them on, go to Notifications preferences on your Profile page.