View Single Post
  #2  
Old 05-27-2016, 05:34 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
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.
Reply With Quote