AS DAT file export

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

AS DAT file export

Post 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
Genete
Posts: 3483
Joined: Tue Oct 17, 2006 3:27 pm
Location: España / Spain

Re: AS DAT file export

Post 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
User avatar
hayasidist
Posts: 3850
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: AS DAT file export

Post 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.
User avatar
DK
Posts: 2896
Joined: Mon Aug 09, 2004 6:06 am
Location: Australia

Re: AS DAT file export

Post 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
User avatar
hayasidist
Posts: 3850
Joined: Wed Feb 16, 2011 8:12 pm
Location: Kent, England

Re: AS DAT file export

Post 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.
Post Reply