okay everyone, it’s been a while since I programmed in python but I’m working on a project
I’m creating an overlay for my video.
The overlap will be rendered in quicktime with a transparency and then composited on top of the footage.
So what I want to do
1)read and parse a text file, the text file has one of the two following formats on each line:
12345 678 90123
12345 67.8 90123
The file is 592 kbytes and represents 10 minutes of data at 20 frames a second. So constantly loading the file into memory each frame is bad. My final render will be 60 frames a second.
-
I need to convert two text objects with the two first two respective values, the third value is a timestamp and is throw out
-
I also need to rotate 2 planes based on the numerical value relative to it’s maximum possible value. For instance, if the max value is 1000 and the supplied value is 500, I want the object to rotate 45 degrees. How to modify a planes rotation and how to modify test.
I hope to use the planes as a mask in the editor. With all this functionality, I hope to generate something to a car dashboard where it displays the speed in text and a gauge.
Any help would be appreciated. I need help learning how to open files. Read the file efficiently without lagging my computer excessively. How to update blender each render cycle. How to create a global “file” object if necessary.
Is it possible to parse it efficiently from the text editor window?