I am trying to use an existing template design of powerpoint using python-pptx library. My problem is that I have two or more different templates ready and when I viewed their slide master, the "title and content layout" of each template are not on the same order. So, the index that I will use will be 1 if I used the first templates and 2 for the second templates.
Using the python-pptx library:
Sample Python Code 1 for fist templates
bullet_slide_layout = self.prs.slide_layouts[1]
Sample Python Code 2 for second templates
bullet_slide_layout = self.prs.slide_layouts[2]
Both of them works, but I do not want to change the indices every now and then whenever a new template design is added.
Please help. Also, If I am not clear with the problem I presented, please tell me. Thank you