Auto match black white grey points of difference footage

What type of scripts do you need?

Moderator: byronnash

Post Reply
chris w
Posts: 13
Joined: October 13th, 2010, 5:16 pm

how hard would it be to have a script go through and keyframe the black, white, and grey points of footage so it all matches?
It would have to read the histogram values somehow. is that possible? Also, I wrote a highlight restore program that is 2x better than adobe RAW. If the auto script is possible, I would put it in my program so damaged footage could still match up.


my ae cs3 aep RAW highlight and shadow restore
http://www.mediafire.com/?o5724wvxd07mkv7

this code below will detect a new layer, but I would still need to
1. read the actual values of the layers
2. read the black, white, and grey points of the image.
3. have color finesse or some plugin accept keyframes



txt = "";
for (j = 1; j <= thisComp.numLayers; j++){
if (j == index) continue;
L = thisComp.layer(j);
if (! (L.hasVideo && L.active)) continue;
if (time >= L.inPoint && time < L.outPoint){
try{
txt = L.source.name;
}catch(err1){
txt = L.name
}
break;
}
}
Post Reply