Replies: 1 comment 1 reply
-
There is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Basically, I needed that, so I looked for the code that returns the selected sceneitem as a
obs_sceneitem_t
. In Blender, you can access to objects by their names withbpy.data.scenes['Scene'].objects['Cube']
but also by the selected and/or active object (you can select some objects and the last selected is the active), by doingbpy.context.selected_objects[0]
. Is in OBS API something like this? If not...Another option is to make a signal with a sceneitem... I found it, it is called
item_select
, but I don't know how to use it. There isobs_get_signal_handler()
for Core OBS Signals andobs_source_get_signal_handler()
for Cource Signals. Sceneitems signals does exist... but I don't know how to access them. I would make: everytime I select a sceneitem, its ID is printed in console. It is enough for me.Meanwhile, I'm using
obs_scene_enum_items()
andobs_sceneitem_get_id()
to get the list of all sceneitems IDs. Also is ok for my need... but I would like to know if other options are possible.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions