another way than "load url"?

is there some other way to open a webpage from inside blender than to use “load url”?
I want the webpage to open in a new window, not in the same window as the blender file?? please help me

I’m not sure if my copy of blender opens web pages, so
you’re one step ahead of me – could you please elaborate
a little more about your problem?

Regards,
Chris

I think he’s talking about a function in the web plugin…

Not much I can do there though.

Martin

… here is a copy of my bbar.py script (for use in blender, my first script mind you old as hell) that opens in new windows (on all platforms)


import Blender
import webbrowser
from Blender.BGL import * 
 
 
# These are your button object global variables! 
 

#Here is the main Draw() routine. All your drawing 
#Should be done in this function.
def Draw(): 
	# You must use the global keyword here to allow you to modify
	# a variable outside the scope of the function.
	global tutes
	global pygame
	global hotkeys
	global elysiun
	global bmania
	global kbase
	global he3d
	global f3d
	global blender_community
	global a_textures
	global py_org
	# Change this color according to what you like ;) 
	glClearColor(.2,.2,.2,0.0)
	glClear(GL_COLOR_BUFFER_BIT) 
	Blender.Draw.Button("Tutorials",11,933.0,2.0,88.0,31.0)
	Blender.Draw.Button("PyGame.Org",8,682.0,2.0,82.0,31.0)
	Blender.Draw.Button("Blender Hotkeys",9,766.0,2.0,99.0,31.0)
	Blender.Draw.Button("elYsiun",10,867.0,2.0,64.0,31.0)
	Blender.Draw.Button("Blendermania",4,318.0,2.0,85.0,31.0)
	Blender.Draw.Button("Knowledge Base",5,406.0,2.0,101.0,31.0)
	Blender.Draw.Button("HighEnd3D",6,509.0,2.0,73.0,31.0)
	Blender.Draw.Button("Find 3D Search",7,584.0,2.0,96.0,31.0)
	Blender.Draw.Button("Blender Community",1,2.0,2.0,118.0,31.0)
	Blender.Draw.Button("ANIMAX Textures",2,122.0,2.0,113.0,31.0)
	Blender.Draw.Button("Python.Org",3,237.0,2.0,79.0,31.0)

 
 
# Here is the main Window Event function. 
#Right now it only has a exit key defined.
def Events(eventnum,eventmod): 
	if eventnum==Blender.Draw.XKEY: 
		Blender.Draw.Exit() 

 
 
# These are the button Events handlers.
def ButEvent(butnum): 
	if butnum==11: 
		# EVENT HANDLER FOR tutes
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://green.dyndns.org/linksMain.htm')
 
	if butnum==8: 
		# EVENT HANDLER FOR pygame
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.pygame.org/')	
 
	if butnum==9: 
		# EVENT HANDLER FOR hotkeys
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.blender.nl/people/joeri/archive/bhk/main.html')
 
	if butnum==10: 
		# EVENT HANDLER FOR elysiun
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('https://blenderartists.org/')
 
	if butnum==4: 
		# EVENT HANDLER FOR bmania
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.blendermania.com/')
 
	if butnum==5: 
		# EVENT HANDLER FOR kbase
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://helium.homeip.net/support/browse.php')
 
	if butnum==6: 
		# EVENT HANDLER FOR he3d
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.highend3d.com/')
 
	if butnum==7: 
		# EVENT HANDLER FOR f3d
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.find-3d.com/')
 
	if butnum==1: 
		# EVENT HANDLER FOR blender_community
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.blender.nl/index_community.php')
 
	if butnum==2: 
		# EVENT HANDLER FOR a_textures
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.animax.it/')
 
	if butnum==3: 
		# EVENT HANDLER FOR py_org
		# Put your code in here to respond to the event 
		pass 
		webbrowser.open('http://www.python.org/')
 

 
 
# The Main Blender.Draw.Register() Call...
Blender.Draw.Register(Draw,Events,ButEvent)

I hope this helps!

K

thanks alot :slight_smile: I will try thatone out as soon as i have learned how to use python :slight_smile:
Ill write back when ive got it to work (or not :slight_smile: