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
AS DAT file export
Moderators: Víctor Paredes, Belgarath, slowtiger
AS DAT file export
http://www.creativetvandmedia.com
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315
Re: AS DAT file export
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:
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
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:
And a little below:### switch layer values
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_"
]
The meaning of the keys are easily readable and can be copy pasted to anywhere.
-G
- hayasidist
- Posts: 3850
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: AS DAT file export
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.
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
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
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
http://www.creativetvandmedia.com
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315
My store on Renderosity:
https://www.renderosity.com/mod/bcs/?uid=921315
- hayasidist
- Posts: 3850
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: AS DAT file export
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.
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.