WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-27-2015, 07:31 PM
jizh1000 jizh1000 is offline
Member
 
Join Date: May 2015
Posts: 4
How to set the viewpoint as the proximity target in a Vizconnect configuration?

Hi,

In the vizard documentation, there is a way for setting the main view as the proximity target:

target = vizproximity.Target(viz.MainView)

But it does not work in the script generated by Vizconnect. I wonder if it is possible to set the viewpoint as the proximity target using Vizconnect?

Thanks.
Reply With Quote
  #2  
Old 06-01-2015, 11:18 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Use the following to get a handle to a node3D object that has the same transform as the viewpoint:

Code:
viewTransform = vizconnect.getDisplay().getNode3d()
target = vizproximity.Target(viewTransform)
This is a linkable object that provides position and orientation but it's not a direct handle to the viewpoint. So it can't be used to set the viewpoint position.
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
Proximity Sensing Using Kinect JamesCakes Vizard 6 06-24-2016 05:52 AM
Orientation selective (Viewing Vector) Proximity Sensor lmGehrke Vizard 2 03-17-2015 12:31 PM
Switching between input devices setup in vizconnect and not using vizconnect JB_HP_Viz Vizard 1 01-20-2015 05:19 AM
vizproximity hint - debug 2D areas related to a source only after adding a target! fordprefect Vizard 1 12-15-2014 12:37 PM
Avatar w/ hat cannot look at viewpoint TrashcanPatrol Vizard 5 08-19-2008 08:26 AM


All times are GMT -7. The time now is 02:08 AM.


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