Katie Boundary
24th May 2020, 22:26
(Stainless's inbox is full so I have to post this openly)
So let's say I wanted to create a function, "KTFM", which is basically TFM, but with my preferred cthresh, mthresh, MI, blockx, and micmatching values. Let's also say that I wanted KTFM to allow the user to override my preferred settings for the first four of these, but always match from the non-dominant field, and lock the user out of micmatching and all other TFM parameters. If I understand correctly, it would look something like this?
function ktfm(clip c, int "peanut", int "butter", int "jelly", int "time")
{
c
underpants = (GetParity) ? 0 : 1
peanut = Default(peanut,1)
butter = Default(butter,20)
jelly = Default(jelly,4)
time = Default(time,2)
tfm(field=underpants, cthresh=peanut, MI=butter, blockx=jelly, mthresh=time, micmatching=0)
So let's say I wanted to create a function, "KTFM", which is basically TFM, but with my preferred cthresh, mthresh, MI, blockx, and micmatching values. Let's also say that I wanted KTFM to allow the user to override my preferred settings for the first four of these, but always match from the non-dominant field, and lock the user out of micmatching and all other TFM parameters. If I understand correctly, it would look something like this?
function ktfm(clip c, int "peanut", int "butter", int "jelly", int "time")
{
c
underpants = (GetParity) ? 0 : 1
peanut = Default(peanut,1)
butter = Default(butter,20)
jelly = Default(jelly,4)
time = Default(time,2)
tfm(field=underpants, cthresh=peanut, MI=butter, blockx=jelly, mthresh=time, micmatching=0)