WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 09-06-2016, 01:49 PM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
About vizproximity

When I add a sensor to a object, there will be a sensor like a frame outside the object.

Is there a method to get rid of the green frame like setting it to transparent or setting it only shows up when the mouse enter the sensor?

Thanks
Reply With Quote
  #2  
Old 09-06-2016, 03:29 PM
Vaquero Vaquero is offline
Member
 
Join Date: Nov 2015
Posts: 62
You can do something like:

Code:
manager.setDebug(viz.OFF)
debugEventHandle = vizact.onkeydown('1',manager.setDebug,viz.TOGGLE)
That way you can turn the debug shapes on/off with a key press, in this example '1'.
Reply With Quote
  #3  
Old 09-06-2016, 10:31 PM
rajnishv rajnishv is offline
Member
 
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Smile

Hi haohaoxuexi1
You can also use the Proximity Events when the target(MainView or Grabbber or any object) enters the proximity ,the Outer box Debug can be set to OFF and when the target leaves the proximity area the debug can bet set to ON.


def EnterProximity(e):
if e.sensor==sensor1:
manager.setDebug(viz.OFF)
if e.sensor==sensor2:
manager.setDebug(viz.OFF)
#and so on

def ExitProximity(e):
if e.sensor==sensor1:
manager.setDebug(viz.ON)
if e.sensor==sensor2:
manager.setDebug(viz.ON)

#-----Registering sensors for proximity enter and exit evenst--------#
manager.onEnter(None,EnterProximity)
manager.onExit(None,ExitProximity)


Thanx & reagrds
Mr.Rajnish Vishwakarma
Software Developer for Mobile,AR,VR
Reply With Quote
  #4  
Old 09-08-2016, 08:47 AM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Quote:
Originally Posted by Vaquero View Post
You can do something like:

Code:
manager.setDebug(viz.OFF)
debugEventHandle = vizact.onkeydown('1',manager.setDebug,viz.TOGGLE)
That way you can turn the debug shapes on/off with a key press, in this example '1'.
thanks it works
Reply With Quote
  #5  
Old 09-08-2016, 08:48 AM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Quote:
Originally Posted by rajnishv View Post
Hi haohaoxuexi1
You can also use the Proximity Events when the target(MainView or Grabbber or any object) enters the proximity ,the Outer box Debug can be set to OFF and when the target leaves the proximity area the debug can bet set to ON.


def EnterProximity(e):
if e.sensor==sensor1:
manager.setDebug(viz.OFF)
if e.sensor==sensor2:
manager.setDebug(viz.OFF)
#and so on

def ExitProximity(e):
if e.sensor==sensor1:
manager.setDebug(viz.ON)
if e.sensor==sensor2:
manager.setDebug(viz.ON)

#-----Registering sensors for proximity enter and exit evenst--------#
manager.onEnter(None,EnterProximity)
manager.onExit(None,ExitProximity)


Thanx & reagrds
Mr.Rajnish Vishwakarma
Software Developer for Mobile,AR,VR
thanks it works
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
vizproximity hint - debug 2D areas related to a source only after adding a target! fordprefect Vizard 1 12-15-2014 12:37 PM
wait for vizproximity and waitKeyDown in task krimble Vizard 2 08-14-2013 03:14 AM
Vizproximity questions. nabrahamson Vizard 3 04-04-2012 04:59 PM


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


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