WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-26-2009, 08:42 PM
djones1010 djones1010 is offline
Member
 
Join Date: Nov 2008
Posts: 15
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?
Reply With Quote
  #2  
Old 04-27-2009, 11:51 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
intersense with 5DT glove sjp Vizard 2 04-06-2009 07:22 AM
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 12:58 AM
trouble loading vrml files generated by ProE tavaksai Vizard 12 12-09-2008 11:11 AM
Trouble Loading Maya7 Cal3d Exporter tbeckert Vizard 3 11-06-2007 09:38 AM
Problems loading dls file vnacooper Plug-in development 1 03-05-2007 09:26 AM


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


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