Log in

View Full Version : AvsP - supplying parameter info for my plugins


Si
1st May 2010, 09:17
Is there an easy method of supplying the parameters of one my plugins e.g
(
clip,
int "HueLevel"=180 (0 to 360),
int "HueLimit"=179 (0 to 179),
int "SatLevel"=50 (0 to 100),
int "SatLimit"=49 (0 to 49),
int "ValLevel"=50 (0 to 100),
int "ValLimit"=49 (0 to 49),
bool "ShowVectorScope"=false,
bool "ShowLimits"=false,
int "Fill"=$FFFF00 ($000000 to $FFFFFF),
int "Dilate"=1 (0 to 5),
bool "QuickHue"=false,

)
to multiple computers without having to type them in on each install?
I can't seem to find where these are held :stupid:

regards

Simon

Gavino
1st May 2010, 09:28
I can't seem to find where these are held
filterdb.dat in the AvsP program folder.

Si
1st May 2010, 10:15
filterdb.dat in the AvsP program folder.

Thanks :)

It wasn't in there but since it gave me the clue that the dat files are in plain text and not binary I had a look in options.dat and found this

...
p8
I01
sS'filteroverrides'
p9
(dp10
Vsimplechromakey_simplechromakey
p11
(VSimpleChromaKey_SimpleChromaKey
p12
V(\u000Aclip,\u000Aint "HueLevel"=180 (0 to 360),\u000Aint "HueLimit"=179 (0 to 179),\u000Aint "SatLevel"=50 (0 to 100),\u000Aint "SatLimit"=49 (0 to 49),\u000Aint "ValLevel"=50 (0 to 100),\u000Aint "ValLimit"=49 (0 to 49),\u000Abool "ShowVectorScope"=false,\u000Abool "ShowLimits"=false,\u000Aint "Fill"=$FFFF00 ($000000 to $FFFFFF),\u000Aint "Dilate"=1 (0 to 5),\u000Abool "QuickHue"=false,\u000Aint "Left",\u000Aint "Top",\u000Aint "Right,\u000A)
p13
I2
tp14

so I'll try copying that file and see if it does the job :)

regards
Simon

Gavino
1st May 2010, 11:22
You can also save any custom function definitions using Options->"Avisynth function definition..."->"Export customizations". There does not seem to be a corresponding import function :(, but you could add the text to filterdb.dat (although I suppose that would make them 'permanent' rather than 'custom').

RiCON
6th May 2010, 15:48
Just "export customizations" and then copy the function(s) to filterdb.dat.

Didn't get to Gavino's post :V