-
Opacity to 100% on framenumber equals layer name?
Hello,
I’m working on a comp where I have to do a frame by frame correction in Photoshop.
I’ve been naming the layers based off of the frame numbers as I’m going along.
I’m hoping there is a way to make the imported layer appear and disappear based off the current frame number.
For example, layer 80 is the corrected image of frame 80, so when After Effects reaches frame 80 the layer’s opacity is set to 100% and then reverts to 0% as soon as the frame is 81.So far I have the following in frame 80’s opacity layer:
x=timeToFrames(time, 1 / thisComp.frameDuration, false);
if (x=thisLayer.name) 100 else 0This is returning 100% all the time and I don’t know why. Since the frame number probably can’t be equal to a string variable, shouldn’t it always be 0%, or fail?
Thanks!
x=timeToFrames(time, 1 / thisComp.frameDuration, false);
if (x=thisLayer.name) 100 else 0