scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.28k stars 502 forks source link

Feature request: read/write access to animation delays #861

Open mgoldenbe opened 1 year ago

mgoldenbe commented 1 year ago

I generate synthesized voice narrations for my slides and keep the text with time stamps, like so:

(1.526)The (1.651)conditional (2.308)statement (2.839)consists (3.433)of (3.526)the (3.62)word (3.948)if, (4.526)a (4.62)condition, (5.576)the (5.686)colon, (6.542)and (6.683)the (6.761)body, (7.505)which (7.755)consists (8.317)of (8.411)the (8.505)statements (9.176)that (9.317)will (9.442)be (9.645)executed (10.348)if (10.458)the (10.551)condition (11.098)holds.

Suppose I add a few words somewhere in the narration, which results in the timestamps being shifted. I want to be able to write a Python script to automatically shift the animation delays, so the animations would be synchronized with the modified narration.

Hence, I would like to request a feature that would allow me to access and modify animation delays from a Python script. Thank you for the consideration.