Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes Implemented
Created two wrapper functions that automatically detect which OBS API functions are available:
sceneitem_get_info_compat() - uses either the old or new function based on availability
sceneitem_set_info_compat() - uses either the old or new function based on availability
2. Replaced All Deprecated Function Calls
Updated 4 instances of deprecated function calls:
Line 471: obs.obs_sceneitem_get_info() → sceneitem_get_info_compat()
Line 597: obs.obs_sceneitem_get_info() → sceneitem_get_info_compat()
Line 603: obs.obs_sceneitem_get_info() → sceneitem_get_info_compat()
Line 654: obs.obs_sceneitem_set_info() → sceneitem_set_info_compat()
3. Updated Version Information
Updated script version from 1.0.2 to 1.0.3
Added compatibility note: "Compatible with OBS Studio 29.1.3 through 32.0+"
Updated readme.md to reflect compatibility with OBS Studio up to v32.0+
Benefits of This Solution
Forward Compatible: Works with OBS 32.0 and future versions
Backward Compatible: Still works with older OBS versions (29.1.3+)
Automatic Detection: No user configuration needed - script automatically detects the available API
No Functionality Changes: All zoom and mouse tracking features work exactly as before
The script should now load and run correctly in OBS Studio 32.0 without any errors. Users can continue using all the zoom-to-mouse functionality as before.