obsproject / obs-studio Public
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
obs_property_clicked_t callback not implemented in Python scripting #5712
Comments
|
import obspython as obs
def do_nothing(props, prop):
pass
def script_description():
return "test"
def script_properties():
props = obs.obs_properties_create()
button = obs.obs_properties_add_button(props, "button", "Test", do_nothing)
obs.obs_property_button_set_type(button, obs.OBS_BUTTON_URL)
obs.obs_property_button_set_url(button, "https://localhost")
return propsHowever, the same problem still occurs when I test it. |
Well... I have no clue whatsoever. If you have discord, you can go onto their server and put it into #scripting text channel under the Development category. People might be able to help better than me. |
|
This is strange. It definitely should work. I can confirm the issue, at least. |
|
Callback types must be manually implemented. Python functions are not C functions and cannot be passed directly as callbacks in the OBS api without implementing the appropriate wrapper. |
|
The PR fixes the dialog box to appear when URL property button is pressed. |



Operating System Info
Windows 10
Other OS
No response
OBS Studio Version
27.1.3
OBS Studio Version (Other)
No response
OBS Studio Log URL
https://obsproject.com/logs/H539xmaggfEcaaGL
OBS Studio Crash Log URL
No response
Expected Behavior
When I click the Test button in the script, the URL opens in my browser.
Current Behavior
Nothing happened.
Steps to Reproduce
Anything else we should know?
It worked normally when the lua script doing the same thing.
The text was updated successfully, but these errors were encountered: