PDA

View Full Version : reading morph mixer files



plemon
06-18-2008, 05:18 PM
Hi,

I am looking for documentation on the hierarchy and formatting of the files created when you save endomorph mixes. These are text files but I need to know what each of the fields are. Here is an extract;

I can see which field is the keyframe value but I don't know what any of the other values are. Anyone got any doco anywhere?

{ KeyedMorph
"TongueBackUp"
{ Envelope
25
Key 0 0 3 0 0 0 0 0 0
Key 0 0.06666667 3 0 0 0 0 0 0
Key 0.116451 0.1 3 0 0 0 0.1154886 0 0
Key 0.50843036 0.13333334 3 0 0 0 0.38873985 0 0
Key 1.007304 0.16666667 3 0 0 0 0.49475068 0 0
Key 1.3923209 0.2 3 0 0 0 0.38183495 0 0
Key 1.4932607 0.23333333 3 0 0 0 0.10010566 0 0
Key 1.2698985 0.26666668 3 0 0 0 -0.22151624 0 0
Key 0.82128865 0.30000001 3 0 0 0 -0.44490236 0 0
Key 0.34179267 0.33333334 3 0 0 0 -0.47553319 0 0
Key 0.039153878 0.36666667 3 0 0 0 -0.30013764 0 0
Key 0 0.40000001 3 0 0 0 -0.038830291 0 0
Key 0 2.4666667 3 0 0 0 0 0 0
Key 0.053168777 2.5 3 0 0 0 0.052729364 0 0
Key 0.20812687 2.5333333 3 0 0 0 0.15367745 0 0
Key 0.42962027 2.5666666 3 0 0 0 0.21966287 0 0
Key 0.66715735 2.5999999 3 0 0 0 0.23557396 0 0
Key 0.86659056 2.6333334 3 0 0 0 0.197785 0 0
Key 0.98245424 2.6666667 3 0 0 0 0.11490613 0 0
Key 0.98245513 2.7 3 0 0 0 8.8668065e-007 0 0
Key 0.82712322 2.7333333 3 0 0 0 -0.15404817 0 0
Key 0.56048673 2.7666667 3 0 0 0 -0.26443288 0 0
Key 0.27326941 2.8 3 0 0 0 -0.28484362 0 0
Key 0.063197866 2.8333333 3 0 0 0 -0.20833541 0 0
Key 0 2.8666666 3 0 0 0 -0.062675573 0 0
Behaviors 1 1
}
}

evenflcw
06-19-2008, 05:13 AM
Looks like standard envelope format. Download any version of the SDK and you'll find some html documentation on what all the values are ( \html\filefmts\lwsc.html ).

http://www.newtek.com/lightwave/developers/

UnCommonGrafx
06-19-2008, 05:50 AM
25 keys...Here they go:
T(3),Y(3),H(3)
or
MotionRotationScale(in triplets,xyz)

Dunno behaviours...

Sdk can definitely help. Also search for lscript in google as there is some user stuff out there that's priceless, beyond the info in the sdk: how to actually use stuff.