[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: invoking ff from non-photoshop host



Hi Dave,

Here's my reverse-engineered version of the Filter Factory PARM
resource block.  Is this what you need?  It seems to be good for
most known (PC) versions of FF.  You can use the Win32 FindResource
API to locate the PARM resource.  E-mail me privately if you need
more details.

Cheers,
-Alex Hunter
alex@afh.com
FilterMeister Developer 

typedef struct {   //structure of FF PARM resource
     int cbSize;    //size of this structure
     int nVersion;  //0=original FF, 1=standalone filter
     int val[8];    //initial values of controls
     int popDialog; //true if need to pop a parameter dialog
     int unknown1;
     int unknown2;
     int unknown3;
     int map_used[4];   //true if map(n) is used
     int ctl_used[8];   //true if ctl(n) is used
     char category[252];    //Category name
     // Michael Johannhanwahr's protect flag...
     int iProtected;		// == 1 means protected
     char title[256];       //Filter title
     char copyright[256];   //Copyright info
     char author[256];      //Filter author(s)
     char map[4][256];      //4 map labels
     char ctl[8][256];      //8 control labels
     char formula[4][1024]; //4 channel formulas
 } PARM_T;
----------
> From: Dave Dyer <ddyer@bigfoot.com>
> To: ff@aurdev.com
> Subject: invoking ff from non-photoshop host
> Date: Monday, July 12, 1999 8:25 PM
> 
> 
>  I'm writing code to invoke ff filters from a non-photoshop host,
> and would like to be able to manipulate the parameters from my own
> UI.  It appears that there is a block of 10 longs which contain the
> slider data, at an offset of 25(longs) form the parameter table.
> 
>  It seems extremely likely that these magic numbers are specific
> to a particular version of ff. What is the recommended procedure,
> if any, for dealing with this?
> 
>