Expression to subtract frames of 2nd layer that does not match the 1st layer
So Hi everyone, this is my very first post.
Actaully I have two videos in seperate layers, the video on 2nd layer has some frames missing whcih are present in the 1st layer video. I want an expression which would compare the both videos (like you choose subtract or difference in Mode) and if the frame of 2nd layer does not match the 1st one, it deletes it from 1st video and then continue...! I have a code in my mind but I don't know the variables. Here it is:
if(thisLayer.thisframe != 2ndLayer.thisFrame){
delete the frame of thisLayer.thisFrame;
continue comapring;
}In other words keep the union of two sets and delete the rest. A = {1,2,3}, B = {1,3} output = {1,3}.
The two videos are in black & white and color versions. So you can't say I should use smaller of it 🙂
Can any one help me with this or tell me whether it's possible or not?