DuAEF.TVPaint.ClipInfo

TVPaint tools for importing and converting clips exported with the MJ_AFX_Export_1.0 tool
This is the tool used to export clips from TVPaint in versions older than 11.

Methods

static getLayers(clipInfoFolder) → {Array.<Object>}

Gets the layers of a clip exported by the MJ_AFX_Export_1.0 tool
Parameters:
Name Type Description
clipInfoFolder Folder The folder containing the clip.
Returns:
Array.<Object> - An object corresponding to the layers object in the JSON file exported with the JSON exporter in TVpaint 11+.

static getResolution(clipInfoFolder) → {Array.<int>}

Gets the resolution (width & height) of a clip exported by the MJ_AFX_Export_1.0 tool
Parameters:
Name Type Description
clipInfoFolder Folder The folder containing the clip.
Returns:
Array.<int> - [width, height]

static parseFile(clipInfo) → {Object}

Parses a clip exported by the MJ_AFX_Export_1.0 tool
Parameters:
Name Type Description
clipInfo File The clipinfo.txt file to import. If a string is provided instead of a File object, it will be used as a path for the file.
Returns:
Object - The project, as an object corresponding to a JSON file exported with the JSON exporter in TVpaint 11+.

static parseTxt(clipInfo) → {Object}

Parses the general information from a clipinfo.txt file generated by the MJ_AFX_Export_1.0 tool
Parameters:
Name Type Description
clipInfo File The clipinfo.txt file to import. If a string is provided instead of a File object, it will be used as a path for the file.
Returns:
Object - An object containing the framerate, duration, bgColor, clipName, projectName and folder.