WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How do you use vizconnect Transport-JumpTo (https://forum.worldviz.com/showthread.php?t=5734)

szkuls 05-26-2016 03:01 PM

How do you use vizconnect Transport-JumpTo
 
Hi,

I am trying to get the mainview to jump to various locations in a scene. Vizconnect transport jumpto seems like it could do that.

I am perplexed as to how I use jumptos. After adding the jumpto transport in vizconnect and open the settings there is a text field to select a file. What file type is supposed to be used here?

Can I pre-populate this file with location in 3ds max?

In short I am looking for an example or tutorial on how to get jumptos in vizconnect working.

Thanks,

Jeff 05-27-2016 05:34 AM

When you add the JumpTo transport you can specify a simple text (.txt) file with each location defined on it's own line. For example, the following specifies three jumpto locations:

Code:

[0, 1.8, 0], [0, 0, 0]
[0, 8, 0], [0, 0, 0]
[0, 0, 10], [90, 0, 0]

You don't need to specify a text file when the transport is added in vizconnect. You can also add the locations through the code:

Code:

# You can directly set the list of locations...
vizconnect.getRawTransport().setLocationList([
([0, 1.8, 0], [0, 0, 0]),
([0, 8, 0], [0, 0, 0]),
([0, 0, 10], [90, 0, 0]),
])

or specify the text file through the code:

Code:

# load a file through code
vizconnect.getRawTransport().load("locations.txt")

The orientation component of the location data is used when both 'use orientation' and 'force orientation to pivot' are enabled in the transport settings.

After you add the transport in vizconnect, you need to press the mappings button to map input signals to the jumpto commands (e.g. jumpto, select next, select previous).

Through the script it should be possible to get a handle to a 3ds Max camera in the model file, get the camera's position and orientation, and then save that data to the transport's location list.


All times are GMT -7. The time now is 02:25 PM.

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