Page 1 of 1
AS DAT file export
Posted: Sun Mar 03, 2013 9:34 am
by DK
Hi.
Is there a way of exporting a DAT file from and AS switch layer?
I remember in the old days of Moho there used to be an export
Dat file option.
Can someone tweek my memory please?
Cheers
D.K
Re: AS DAT file export
Posted: Mon Mar 04, 2013 12:52 pm
by Genete
Hi DK!
I don't recall that kind of script of facility but you can easily read and write the switch keys. Just edit the anme file and search for the string:
### switch layer values
And a little below:
Code: Select all
switch_keys
[
keys 5
0 1 0.1 0.5 1 0 0 ""
1 1 0.1 0.5 1 0 0 "_A_"
24 1 0.1 0.5 1 0 0 "_B_"
48 1 0.1 0.5 1 0 0 "_C_"
72 1 0.1 0.5 1 0 0 "_D_"
]
In my example the layers were called _A_, _B_, _C_ and _D_, and had keys at 1, 24, 48 and 72 frames
The meaning of the keys are easily readable and can be copy pasted to anywhere.
-G
Re: AS DAT file export
Posted: Mon Mar 04, 2013 11:47 pm
by hayasidist
and/or ...
a dat file is just a text file with a header line followed by lines of the form: frame number and target layer..
e.g.
MohoSwitch1
12 rest
24 etc
26 rest
28 AI
29 E
many many ways to get one - write a program, create by hand or cut and paste from the .anme as per genete's suggestion... but remember to add the header or it won't import properly.
Re: AS DAT file export
Posted: Tue Mar 05, 2013 12:24 pm
by DK
Hi.
Thanks for the replies guys but i ended up stripping the data from the AS file like you said. Could'nt wait for a response. It was a PAIN stripping the extra lua info away. I wonder why .DAT file was taken away? it is extremely handy especially if you have multiple characters you want animated, ie, singing. Oh well. All good jobs done.
Thanks again.
Cheers
D.K
Re: AS DAT file export
Posted: Fri Apr 19, 2013 10:55 am
by hayasidist
too late for this particluar need but ...
for anyone who frequents the other place, in the VIP section:
http://www.kelleytown.com/forum/animato ... IC_ID=1894
unload switch to .Dat: Key frames are copied and loops are expanded with individual key frames created for the duration of the animation.