Get scene list within plugin

Kladonk

New Member
Hi,

I am currently working on a stopwatch / timer plugin for OBS Studio. So far everythings works pretty good. I want to add some functionality to automatically fire an action like switching to a specific scene, when the countdown has finished.

I tried to include "obs-frontend-api.h" to call "obs_frontend_get_scene_names" but that seems to be impossible from the plugin (maybe one is not supposed to access the frontend-api from the plugin, I don't know). Is there any way to get the list of scenes?

Any help would be appreciated.

Thanks
Kladonk
 

Kladonk

New Member
I've already found the problem. I really have to learn more about cmake I think. I have to link the obs-frontend-api in CMakeLists.txt. Problem solved.
 
Top