PDA

View Full Version : How to set the viewpoint as the proximity target in a Vizconnect configuration?


jizh1000
05-27-2015, 07:31 PM
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:

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.