Import 2D Tacking Data

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  01 January 2011
Import 2D Tacking Data

hi guys
is there a solution for import 2D Tracking Data to 3dsmax , i`m working with Pftrack and Syntheyes but i cant use their formats for importing 2d track in 3dsmax.

i think its need a maxscript converter for import data .

can anyone help me please ?

(sorry for my english)
__________________
Siahpoosh.Net
 
  01 January 2011
Can you post a file with the data that's exported from Syntheyes? I remember that you could export data for After Effects and Combustion which were 2d only and were simple text in a tab delimited format. Those files can be parsed in maxscript really easy.
__________________
Frustration free tools to make artists feel like artists again
http://www.75ive.com/tools


 
  01 January 2011
hi antonv
every data and every tracks is in this .txt format .
just X,Y and Z is empty .
Attached Files
File Type: txt Tracks Data.txt (11.8 KB, 9 views)
__________________
Siahpoosh.Net

Last edited by Siahpoosh : 01 January 2011 at 10:07 AM.
 
  01 January 2011
Here is a quick code that uses your file to create animated points:

trackerDataFile = "c:/tracksdata.txt" -- put the proper path to the file you are using 
  f = openFile trackerDataFile -- opens the file for reading
  seek f 0 -- positions the file at the first character
  
  while (not eof f) do -- loops through all the lines in the text file and stops when reaches the end of file
  (
  	theLine = readline f -- reads the current line
  	
  	-- if/then checks to see if the current line is a tracker or a position value and if it is a tracker then creates a point named
  	-- the same with the label given within the text file and makes it the current selection; it also gives them a green color 
  	-- if your trackers are named differently than "Tracker*" then you'll have to change the string 
  	if matchPattern theLine pattern:"Tracker*" ignoreCase:true then point name:theLine isSelected:on wirecolor:green
  	else
  	(
  		-- in case the current line is a value it will turn the animate button on and will add keys for each position specified in the file
  		with animate on
  		(
  			s = filterstring theLine " " -- split the string based on spaces to get 3 values: frame number, x position, y position
  			-- sets the position of the selected object at each frame based on the values obtained by splitting the s string
  			at time (s[1] as integer) selection[1].pos = [s[2] as float, s[3] as float, 0] 
  		)
  	)
  	
  )
  
  max select none -- deselects the last point created
  close f -- closes the text file
__________________
Frustration free tools to make artists feel like artists again
http://www.75ive.com/tools


 
  01 January 2011
thanx a lot antonv
its work perfect
__________________
Siahpoosh.Net
 
  01 January 2011
Glad I could help
__________________
Frustration free tools to make artists feel like artists again
http://www.75ive.com/tools


 
  01 January 2011
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 08:09 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.