WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to set the viewpoint as the proximity target in a Vizconnect configuration? (https://forum.worldviz.com/showthread.php?t=5359)

jizh1000 05-27-2015 07:31 PM

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.

Jeff 06-01-2015 11:18 AM

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.


All times are GMT -7. The time now is 01:38 AM.

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