4
$\begingroup$

I am having trouble creating a button on a custom panel, which on clicking will open the browser and take the user to the specified url. Can anyone help me with the code!

$\endgroup$
3
$\begingroup$

see the docs for bpy.ops.wm.url_open

bpy.ops.wm.url_open(url="")

so a button would be

row.operator('wm.url_open', text='open url').url='http://www.blender.org'
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.