Fix OBS 32+ API compatibility (replace deprecated sceneitem functions)#92
Fix OBS 32+ API compatibility (replace deprecated sceneitem functions)#92luangaldinodev wants to merge 2 commits intoBlankSourceCode:mainfrom
Conversation
|
can you please fork a new version of it? |
Hi @Stephenzero, 🇺🇸 Thanks for the suggestion. Since the original repository appears to be inactive for a few years and still limited to older OBS versions, I’ll go ahead and maintain a fork with OBS 32+ compatibility. I’ll merge the fix into the main branch of my fork and create a proper release so it can be used right away. If the original maintainer becomes active again in the future, I’m totally open to collaborating or syncing the changes. Thanks again for the idea. Fala @Stephenzero, 🇧🇷 Obrigado pela sugestão. Como o repositório original aparenta estar inativo há alguns anos e ainda limitado a versões antigas do OBS, vou manter um fork com compatibilidade para OBS 32+. Vou fazer o merge da correção na main do meu fork e criar uma release para que já possa ser utilizado. Se o maintainer original voltar a ficar ativo no futuro, fico totalmente aberto a colaborar ou sincronizar as alterações. Valeu pela ideia. |
This PR updates the script to ensure compatibility with OBS Studio 32+.
In OBS 32, the functions:
were replaced by:
The previous function calls result in a runtime error:
"attempt to call field 'obs_sceneitem_get_info' (a nil value)"
This change replaces the deprecated calls with the updated API equivalents.
Tested on:
The script works as expected after the update.
Please let me know if you would prefer a backward-compatible approach
to support both older and newer OBS versions.