obs_frontend_set_current_scene_collection not working on mac ?

Vic Lin

New Member
Hi all,

I'm writing a OBS studio plugin using Qt on mac,
and trying to change the scene which in "Scene Collection" by obs_frontend_set_current_scene_collection() function,
but OBS did not change to what I specified.

I also compare text for make sure is match (in attach file compareText.txt)

Is I missing something ?
Thanks for any help.
 

Attachments

  • compareText.txt
    550 bytes · Views: 37
Last edited:

Vic Lin

New Member
Dear all,

I find the reason, set the propety name is "fileName", but get using "file_name".

in file obs-studio/UI/api-interface.cpp, line 158 and 160
QVariant v = action->property("file_name");
v.typeName() always equal nullptr.

set the property is in obs-studio/UI/window-basic-main-scene-collections.cpp, line 208
action->setProperty("fileName", QT_UTF8(path));

Is it possible to fix the typo in next release version ?
Thank you.
 
Last edited:

dodgepong

Administrator
Community Helper
Please submit a pull request for this. If it's accepted, it will be in the next release.
 
Top