How do i get the text string from an existed text source with python

rei2888

New Member
Hello,

I want to write a python script, to get the text string from an existed GDI+ text source,and print this text string。
But i can't find a way or funtion to get the text string.Could somebody help me?

Thanks
Rei
 
A Text Source can contain text, or it can have a filename, with the text in a file. If you can use the file version, you could just read the file.

Otherwise, you can call obs_source_get_settings to get a settings object for the text source, and obs_data_get_string to get the value. I have used obs_data_set_string followed by obs_source_update to CHANGE the string (in Lua)
 
Top