Hi! I'm going to start developing a new convert type that would allow to read the values for a parameter or value node from a text file. I want to make it the simplest way possible so I've narrowed the format of the file and the supported types to this:
Supported types: bool, integer, real, angle, time, vector, color, string. File format: A line with the frame rate (like the lst file): FPS 24 Another line with the type of the data (one of these): TYPE REAL TYPE BOOL TYPE INTEGER TYPE ANGLE TYPE TIME TYPE VECTOR TYPE COLOR TYPE STRING and several lines with the entry: FRAME VALUE where VALUE can be: REAL (for Real, Time and Angle) 0 or 1 (for bool) INTEGER (for integer) REAL REAL (for vector) REAL REAL REAL [REAL] (for color, interpreted as RGB[A] alpha optional) STRING (a group of words until the end of line for strings) Attached is a dummy file for example for each type. Internally it would create an Animated Value Node the first time the data is read from the file. The interpolation used for the waypoints of the Animated Value Node would be a subparameter of the Convert type. Also a Offset time would be available as subparameter to shift the animation to other different time. I would like to know other's opinion or suggestions before start to code. -- Carlos http://synfig.org
------------------------------------------------------------------------------
_______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl