0

How can the Google Slides API be used to do the same as the "Distribute" function which is available from the GUI editor?

(as in:

enter image description here

seinecle
  • 10,118
  • 14
  • 61
  • 120
  • Unfortunately, in the current stage, there are no methods for directly achieving it, yet. But as a workaround, how about this flow? 1. Retrieve the position of each objects, that you want to arrange, using the get method. 2. Calculate each rearranged position. 3. Arrange each object using ``updatePageElementTransform`` request of the batchUpdate method. But the selected objects on a slide cannot be retrieved using Slides API. Please be careful this. If this was not useful for your situation, I apologize. – Tanaike Mar 14 '19 at 22:33
  • 1
    Thank you! I'll just find a way to proceed differently. – seinecle Mar 15 '19 at 14:35

0 Answers0