Yesterday it took about 4 hours for me to look for this method and i didn't find it. I was sure i fully researched the https://obsproject.com/docs/reference-scenes.html page but now i see this method is there right under obs_sceneitem_get_scene which i saw. Thanks a lot.I have not gotten my script to work yet (frontend call issue). But I would think the function:
obs_sceneitem_get_source(scene_item) would get you there.
This would be in a for loop to iterate the scene items (i.e for _, scene_item in ipairs(scene_items) do)