WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 04-26-2009, 09:42 PM
djones1010 djones1010 is offline
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
Old 04-27-2009, 12:51 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,467
This should work. Have you tried a simple script like this.

import viz

button = viz.addButton()

def addModel():
      #add you model here

vizact.onbuttondown(button, addModel)
Reply With Quote

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 08:22 AM
Problems loading WRL file DrunkenBrit Vizard 2 01-29-2009 01:58 AM
trouble loading vrml files generated by ProE tavaksai Vizard 12 12-09-2008 12:11 PM
Trouble Loading Maya7 Cal3d Exporter tbeckert Vizard 3 11-06-2007 10:38 AM
Problems loading dls file vnacooper Plug-in development 1 03-05-2007 10:26 AM

All times are GMT -7. The time now is 12:31 PM.

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