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!


see the docs for bpy.ops.wm.url_open


so a button would be

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

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.