Reputation: 454
So I'm working on power point generation programs for my company. I am using the python win32com module which provides full access to the VBA (C#?) COM api.
My current idea is to have the users create generic slide layouts using the slide master. I will then provide an API to create JSON based on python dictionaries for what layouts to apply in what position of presentation and to place what content in what placeholders on each particular slide.
My concern is how to effectively keep track of what placeholders are what on each slide layout. I've been digging around the API and while you can add names to shapes within a slide I am failing to see how I can have a user do that through the GUI in the slide master. In the perfect would the user would create a new slide in the slide master and name each shape on the slide. Then to say add something to shape-A the user would reference shape-A as a key in the json.
Is it not possible to name shapes within the slide master? At least through the GUI? Or would I have to create a vba macro for this and add it to the point?
Upvotes: 0
Views: 776
Reputation: 4913
Slides cannot be produced from a slide master. The master is parent to the slide layouts, and layouts are parents to the slides. You can't bypass that architecture.
Shapes acquire default names as they are created. Users can change those names using the Selection Pane (Home>Select>Selection Pane).
Upvotes: 1