PDA

View Full Version : Script For Adaptive Overriding.


Terranigma
4th November 2006, 17:01
Hi, I was wonderin' if anyone's thought about using the "ovr" parameter with scripts of their choice, like being able to to use kerneldeint for only the frames specified in a "ovr" file? I know I have, so I thought it'd be nice to use a plugin that'd allow me to use any script from an "ovr".

Example:

MyFunction = Kerneldeint(1,10,sharp=true)
AdaptOvr(Adapt=MyFunction,ovr="C:\ovr.txt")

ovr.txt would indicate the frames that'd be used in conjunction with AdaptOvr + MyFunction. (An Example of frames that i've indicated are in the code script below)

1,10
17
23
75

1,10 = Frames 1 through 10 (1-10) would be overrode with MyFunction
17 = Frame 17 would be overrode with MyFunction
23 = Frame 23 would be overrode with MyFunction
75 = Frame 75 would be overrode with MyFunction

(You get the picture ;) )

It'd work sort of like Applyrange, but easier and more flexible.

I think it'd be very useful imo.

IanB
5th November 2006, 05:54
ConditionalReader()
ConditionalFilter()

Terranigma
5th November 2006, 16:14
Conditional Filter/Reader seems to be more work than even applyrange. The examples it uses is just too much. :o

sh0dan
6th November 2006, 09:28
I does exactly what you ask. If you took five minutes to read the docs you might find out.

Terranigma
6th November 2006, 15:48
I does exactly what you ask. If you took five minutes to read the docs you might find out.

Actually I did; I guess it would'nt hurt to spend some time testing them out. I'll reply back once I figure out how to use them.

There's something I'm obviously doing wrong, maybe one of you guys can point me in the right direction.



Edit:
Here's an example of a script i'm using

adapt = vinverse()
ovr = ConditionalReader("C:\P Recover\Star Wars Ep 2.txt\","adapt")
ConditionalFilter(ovr,adapt,"ovr""=","adapt")

Star Wars Ep 2.txt

Type float
1
292

I'm getting The First Condition did not return an int, bool, or float.
I tried, switching "adapt with "ovr". Tried various combinations of using "=", "<" & ">", and even added + - next to the frame numbers in a .txt file.

Help would be greatly appreciated.

IanB
7th November 2006, 02:07
Hey this is the Developer forum, we expect a modocumn of RTFM and offer meaty answers to meaty questions.

The conditional stuff works Reverse Polish style like an old HP calculator, so the Reader comes after the Filter. Adapt this style to suit your purposeovr=Last
adapt = vinverse()
ConditionalFilter(ovr, adapt, "Value", ">=", "42")
ConditionalReader("C:\P Recover\Star Wars Ep 2.txt","Value")Look for the heading Complicated ApplyRange near the bottom of the local help ConditionalReader page.