ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

reading float values from binary file

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Saeed Shahriyari
reading float values from binary file
on Feb 10, 2017 at 11:34:16 am

Hi all,
I have a binary file containing data recorded using a c program.
the data stored in files are float values.
Now I need to retrieve the float numbers from binary file in after effects script
This is my code:

var myFile = File.openDialog('select file');"r");
myFile.encoding = "binary";
for(x=0;x<myFile.length;x += 4){,0);
buffer =;

the question is how to convert the buffer to a float number

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved