Div Posted September 19, 2007 Share Posted September 19, 2007 Hi, I want to write a script able to read the data in a chn file, exported from a Dynamic CHOP, in order to import the data and use it in xsi... But I don't know how to do this, i mean i wrote in the past few scripts to export data ( i know it's easier ;- ) but never to import data... How can i do this ?? Which is the easier language, between vbs, javascript or python, to code this... Which one have the best tools to read a file and extract the variables ??? Thanks Quote Link to comment Share on other sites More sharing options...
Div Posted September 19, 2007 Author Share Posted September 19, 2007 (edited) If someone could explain me the values (for tx) found in the chn format : segment { length = 0.0399999991059303 value = 3.10962414741516 3.2357189655304 accel = 0.0133333 0.0133333 expr = cubic() } I don't know why there is 2 value, for both value and accel parameter... Edited September 19, 2007 by Div Quote Link to comment Share on other sites More sharing options...
michael Posted September 19, 2007 Share Posted September 19, 2007 check out the help for chkey chkey [-f frame] [-t time] [-v lvalue] [-m lslope] [-a laccel] [-V rvalue] [-M rslope] [-A raccel] [-T tielist] [-F function] channel_patterns Options -v lvalue The value entering the key. -m lslope The slope entering the key. -a laccel The acceleration entering the key. -V lvalue The value leaving the key. -M lslope The slope leaving the key. -A raccel The acceleration leaving the key. -T tielist Ties the options specified in the tielist, which is a list of characters ("amvAMV") correspoding to the accel, slope, and value in and out options. Both the right and left settings will be locked together. -F function The expression function for the segment following the key. Quote Link to comment Share on other sites More sharing options...
Div Posted September 19, 2007 Author Share Posted September 19, 2007 I will check, thanks Quote Link to comment Share on other sites More sharing options...
Jason Posted September 20, 2007 Share Posted September 20, 2007 I will check, thanks You might find it easier to deal with if you read a .chn into a File CHOP and write out a .chan format with all the columns you need. Many packages are able to read columns of baked data pretty easily so this might be the route of least resistance perhaps? Quote Link to comment Share on other sites More sharing options...
edward Posted September 23, 2007 Share Posted September 23, 2007 I personally agree with Jason. If you must know why there's 2 values though, arctor pointed to chkey. Unlike chkey though, the .chn file format is based on segments so it's the in/out values of the segment as opposed to the key. Quote Link to comment Share on other sites More sharing options...
Div Posted September 27, 2007 Author Share Posted September 27, 2007 Thanks a lot, i will follow your advices.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.