Skip to content

Conversation

@AndyFerns
Copy link

Fixed the issue for obs not accurately obtaining the scene + showing an error log as follows:

[obs-zoom-to-mouse.lua] Failed to call script_update for obs_lua_script_update: [string ".../obs-zoom-to-mouse.lua"]:435: attempt to call field 'obs_sceneitem_get_info' (a nil value)

Simple refactoring from
the getter: obs.obs_scenitem_get_info to the new API after the update: obs.obs_sceneitem_get_info2 and similarly for the setter: obs.obs_scenitem_set_info to obs.obs_sceneitem_set_info2

Script works perfectly after making these changes and show no error logs

…pt_update for obs_lua_script_update: [string ".../obs-zoom-to-mouse.lua"]:435: attempt to call field 'obs_sceneitem_get_info' (a nil value)

Simple refactoring from
the getter: obs.obs_scenitem_get_info to the new API after the update: obs.obs_sceneitem_get_info2
and similarly for the setter: obs.obs_scenitem_set_info to obs.obs_sceneitem_set_info2
@giswqs
Copy link

giswqs commented Sep 28, 2025

@AndyFerns May I know which operating system did you test it on? I am on Manjaro Linux. I tested your script but still can't obtain the scene.

image

@AndyFerns
Copy link
Author

I tested it on windows 11 24H2 (OS Build 26100.6584) and i can see all required sources.
However i didn't try it on any Linux Distros.

image

@amirHizkiya
Copy link

You might want to look into changing obs_sceneitem_set_info as well.

@AndyFerns
Copy link
Author

You might want to look into changing obs_sceneitem_set_info as well.

yup ive already made that change in the commit. i although still havent tested it on any linux distros, but its working fine on my windows 11 machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants