WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-31-2014, 10:28 AM
roobert roobert is offline
Member
 
Join Date: May 2014
Location: Pachuca, Hidalgo, México
Posts: 34
Send a message via Skype™ to roobert
Question Information associated with a model

Can I associate information to a model? so when I go in, this information is displayed

I use sensor proximity.

#Create proximity manager
manager = vizproximity.Manager()
manager.setDebug(viz.ON)

#Add main viewpoint as proximity target
target = vizproximity.Target(viz.MainView)
manager.addTarget(target)

#MODEL
newTarget=viz.add('model/objeto.dae', pos=[0,0,0])
newTarget.collideBox()
newTarget.alpha(0.8)
sensor = vizproximity.addBoundingSphereSensor(newTarget,sca le=2)
manager.addSensor(sensor)

#ACTIVE SENSOR
def EnterProximity(e):
print "SHOW INFORMATION"

#OFF SENSOR
def ExitProximity(e):
print "HIDDEN INFORMATION"
Reply With Quote
 

Tags
sensor proximity, viz.info

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
Access the vertices of a model pankaj bansal Vizard 1 03-29-2013 08:02 PM
Accesing different parts of model pankaj bansal Vizard 1 12-30-2012 11:10 PM
3ds Exported .IVE Model mirrors movement of Mainview Felix Vizard 9 05-18-2012 10:17 AM
Change model alpha and memory leak hosier Vizard 2 06-25-2009 11:55 AM
Model sizes Pastscapian Vizard 15 10-07-2006 03:48 PM


All times are GMT -7. The time now is 10:51 AM.


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