PDA

View Full Version : Trouble loading a .obj file into a scene through a button


djones1010
04-26-2009, 08:42 PM
I am trying to load a .obj file into a scene when I press a button, but it doesnt seem to work. How could i get this function to work if this is possible?

Jeff
04-27-2009, 11:51 AM
This should work. Have you tried a simple script like this.

import viz
viz.go()

button = viz.addButton()
button.translate(.5,.5)

def addModel():
#add you model here

vizact.onbuttondown(button, addModel)