WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Trouble loading a .obj file into a scene through a button (https://forum.worldviz.com/showthread.php?t=1986)

djones1010 04-26-2009 08:42 PM

Trouble loading a .obj file into a scene through a button
 
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.

Code:

import viz
viz.go()

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

def addModel():
      #add you model here

vizact.onbuttondown(button, addModel)



All times are GMT -7. The time now is 01:16 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC