Cman
02-20-2003, 06:20 PM
Can anyone help?
I'm trying to write a little script to read a txt file of coordinates and convert it to a LW motion file - but I cannot make sense of the *.mot file.
Any help in translating all this info?
Here's the file of a simple Null move of 3 keyframes.
LWMO
3
NumChannels 9
Channel 0
{ Envelope
3
Key -0.059999898 0 0 0 0 0 0 -1.109846 0
Key -1.1700001 2 0 0 0 0 -0.37000012 -0.18500006 0
Key -0.61500007 3 0 0 0 0 0.55484587 0 0
Behaviors 1 1
}
Channel 1
{ Envelope
3
Key 0.71000034 0 0 0 0 0 0 0 0
Key 0.71000034 2 0 0 0 0 0.0033333302 0.0016666651 0
Key 0.71500033 3 0 0 0 0 0.0049986066 0 0
Behaviors 1 1
}
Channel 2
{ Envelope
3
Key 0.049999993 0 0 0 0 0 0 0.14497986 0
Key 0.19499999 2 0 0 0 0 0.070000008 0.035000004 0
Key 0.155 3 0 0 0 0 -0.039988883 0 0
Behaviors 1 1
}
Channel 3
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 4
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 5
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 6
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 7
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 8
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
I'm trying to write a little script to read a txt file of coordinates and convert it to a LW motion file - but I cannot make sense of the *.mot file.
Any help in translating all this info?
Here's the file of a simple Null move of 3 keyframes.
LWMO
3
NumChannels 9
Channel 0
{ Envelope
3
Key -0.059999898 0 0 0 0 0 0 -1.109846 0
Key -1.1700001 2 0 0 0 0 -0.37000012 -0.18500006 0
Key -0.61500007 3 0 0 0 0 0.55484587 0 0
Behaviors 1 1
}
Channel 1
{ Envelope
3
Key 0.71000034 0 0 0 0 0 0 0 0
Key 0.71000034 2 0 0 0 0 0.0033333302 0.0016666651 0
Key 0.71500033 3 0 0 0 0 0.0049986066 0 0
Behaviors 1 1
}
Channel 2
{ Envelope
3
Key 0.049999993 0 0 0 0 0 0 0.14497986 0
Key 0.19499999 2 0 0 0 0 0.070000008 0.035000004 0
Key 0.155 3 0 0 0 0 -0.039988883 0 0
Behaviors 1 1
}
Channel 3
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 4
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 5
{ Envelope
1
Key 0 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 6
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 7
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
Channel 8
{ Envelope
1
Key 1 0 0 0 0 0 0 0 0
Behaviors 1 1
}
