Com2mot.ls

Architecture:   Generic
Version:           1.1
LW Version:    6.0
LS Version:     2.0
Last Update:   10.09.00

   Introduction

Com2mot will scan Commotion XY or After Effects 4.x tracker files and write a separate LW motion file for each tracker found. The motion files will be written to the same directory that the tracker file was in. This is a generic LScript requiring LScript version 2.0.0 or higher; therefore, it only works in Layout in Lightwave 6. This script could easily be modified to work in LW 5.6, but a small amount of functionality would be lost. Please contact the author if there is a demand for a LW 5.6 version.

   Controls

Input File Name -- Select the tracker file

Load Motion File -- When enabled, will invoke Load Motion File command when file conversion is completed

Output Format -- Choose whether you want motion files created in 5.x or 6.x format.

Input Format -- Choose the format of the input file: Commotion or After Effects

Linear Keyframes -- When enabled, all keyframes created will have their Incoming Curve parameter set to "Linear."

Keyframe Increment -- Set spacing of keyframes created. Disabled when Use File Keyframe Data is enabled.

Use File Keyframe Data -- When enabled, keyframes will be created at the same frames as specified in the tracker file.

Flip Y Axis Data -- When enabled, inverts the sign of the Y data read from the tracker file as it is written to the motion file. Typically used for Commotion compatibility.

FPS (Frames Per Second) -- The L[6] motion format specifies the time at which the key exists. Set this field to match your target scene's Frames Per Second setting. (Lightwave 6.x only)

Pixel Aspect Ratio (PAR) -- Scales the x values to match the PAR of the data coming in from the tracker file. This scaling takes place after the Scale Factor is applied.

Presets -- Allows the user to apply popular PAR presets quickly. Note that the value of the Pixel Aspect Ratio, if entered directly into the PAR field, will always override that of the preset value, even if "Custom" is not selected.

Scale Factor (%) -- Scales the x and y values of the tracker data by an equal amount. The limits to the minislider control range from 0 to 1000; however, larger values may be entered manually. This scaling is applied before that of the Pixel Aspect Ratio.

   Installation

Extract the files into your \Plugins\Utility\Lscript-GN folder. Add the script to Layout the way you would any other plug-in. Add the command to a menu or assign it to a hotkey if you like.

   Version history

1.1 -- Com2mot now 'remembers' the last requester settings and defaults to them at the next invocation of the script.

1.0 -- Initial release

   Disclaimer

Legal disclaimers bore me, and are probably useless anyway. So here's mine: If anything bad happens, it ain't my fault. I don't own either Commotion or After Effects, so the only files this script has been tested with are those supplied by interested users. It seems to work, and seems to have made some people happy. That's good enough for me until I hear otherwise.