Import Multiple Tracks

Import_Multiple_Tracks.3detcl [12/04/02]
Author: Rolf Schneider, Science
-D-Visions

Required Version: 3DE V3 R3

Comment: This scripts expects to import a special ASCII file. This file contains 2D tracking curves and point identifiers. If no point object with respective identifier exists, then a new point object is created and the respective 2D tracking curve will be associated to it. If a point object with the same identifier already exists, its 2D tracking curve will be replaced with the one found in the ASCII file.


Fileformat

In order to import tracking curves e.g. of two points "point1" and "point2" the ASCII file should have the form:


/ maybe some comments

point1
	1 10.0 20.0
	2 20.0 40.0
	3 30.0 60.0
	4 40.0 80.0
	5 50.0 90.0
/ maybe more lines to follow

/ maybe another comment

point2
	11 11.1 22.2 
	12 22.2 33.3
	13 33.3 44.4
	14 44.4 55.5
	15 55.5 66.6

Empty lines are allowed. Comment lines start with a "/". The lines containing point names start with the name itself, lines containing numbers start with a tab-character. The first number is always the frame number, the second and third number represent the x- and y-coordinate of the tracking point for this frame, measured in pixel. A position of (0,0) corresponds to the lower left corner of the lower left pixel of the image (not of the field of view).


To install/use a custom TCL script, please copy it to <3DE install dir>/user_data/tcl_archive/.
The script will appear in the menu Main Window::Project::Execute TCL Script, after restarting 3DE.
Every user running 3DE installed in <3DE install dir>, will be able to see and use this script from that menu.
To install a TCL script locally, copy it to <home dir>/.3dequalizer/tcl_archive/.
It is also possible to start a script right away by selecting the function
Main Window::Projects::Execute TCL Script::Browse...