Sitni Sati Forums
AFC & AGT Files - Printable Version

+- Sitni Sati Forums (https://forum.afterworks.com)
+-- Forum: Products (https://forum.afterworks.com/forumdisplay.php?fid=4)
+--- Forum: FumeFX [max] (https://forum.afterworks.com/forumdisplay.php?fid=8)
+--- Thread: AFC & AGT Files (/showthread.php?tid=1261)



AFC & AGT Files - holycause - 12-14-2011

Hi,

I was wondering if it would be possible to access the information in the AGT & AFC files without having to load them in a FFX shader?
I tried to open the binary files with Python, but unfortunately, it doesn't work.

Thanks


Re: AFC & AGT Files - holycause - 12-14-2011

I have another question regarding the keys

We can get their color but not their position.
Any way to get them?

BTW, in the help file you wrote
NumKeys with 2 s
Quote:index = 0... NumKeyss()-1

Thanks

Ruben


Re: AFC & AGT Files - sitnisati - 12-16-2011

Hello,

Thanks for noticing the typo !
I will add function to get color key position for next version.

Here is the colde to load .agt files.

Code:
WORD lver;
int mode;

fread(&lver,sizeof(WORD),1,file);
fread(&mode,sizeof(mode),1,file);

        fread(&nKeys,sizeof(int),1,file);
            
        for ( i=0; i < nKeys; i++ ){

            Color color;
            float pos, tens, cont, bias, eFrom, eTo;

            fread(&color,sizeof(Color),1,file);
            fread(&pos,sizeof(float),1,file);
            fread(&tens,sizeof(float),1,file);
            fread(&cont,sizeof(float),1,file);
            fread(&bias,sizeof(float),1,file);
            fread(&eFrom,sizeof(float),1,file);
            fread(&eTo,sizeof(float),1,file);
        }

Thank you.

Kresimir


Re: AFC & AGT Files - holycause - 12-16-2011

Hi Kresimir

Thanks a lot. Appreciate for it. Smile

Ruben


Re: AFC & AGT Files - sitnisati - 12-22-2011

You're welcome !