Animation from text file

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
darkoo
Posts: 0
Joined: Mon Aug 05, 2013 11:17 am

Animation from text file

Post by darkoo » Mon Aug 05, 2013 11:38 am

Hello, I am pretty new to blender and even newer to python. I was wondering if someone could help me out with this problem. Thanks in advance!!

I have bunch of text files that contain same structure and each text file is an animation take for a humanoid character bones. In the beginning of each file each bone gets "declared" and then each frame of the animation is "flagged" with "Time #" and after the flagg each bones rotation and position value is printed on it's respective line. This structure is repeated until the animation frames reaches the final frame.

Some of the text files have specific it's own Rigg but the structure is the same.

here is how one of the text files look: http://pastebin.com/raw.php?i=6ttudA2n

I was thinking that a script would be nice to import each text file on at the time applying it to the Rigg then exporting the rigg as a FBX then back to blender removing the animation from the rigg and applying the next one.. still kinda tedious but thats the simplest way I would think is.

Post Reply