Query styled text content with python

I'm having a hard time getting the text out of the styled text field of Text+ tool with Python. Thanks in advance!
https://forum.blackmagicdesign.com/
https://forum.blackmagicdesign.com/viewtopic.php?f=22&t=48487
Text1.StyledText[CurrentTime]
=Text1.StyledText[0]
Eric Westphal wrote:As most other controls in Fusion, the StyledText is animatable,
so even it's not animated, you'll have to query the value at a specific time:
- Code: Select all
Text1.StyledText[CurrentTime]
or
- Code: Select all
=Text1.StyledText[0]
with the value in square brackets being the frame of the comp you want to get the value at.