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$

1 Answer 1

4
$\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$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .