Joe Clay
Forum Replies Created
-
Are the comps different sizes and do you have continuously rasterize checked?
Joe Clay
Workbench.tv -
Awesome! You’re welcome. I’m glad I was able to help out!
Joe Clay
Workbench.tv -
I don’t know why that came in twice, but the link to the aep was broken on the first one.
Joe Clay
Workbench.tv -
OK, this is a very specific solution, meaning that if your keys aren’t set up in a specific way, this won’t work. It would’ve been a lot easier if you had thought about that motion first. Anyway, this assumes your keys are 20 frames apart. As long as your keys are all the same, this will work. There’s an aep here if you want to see how my test was set up.
Basically it delays the y movement by the amount of frames specified after the frameDuration part below. So in my example project, the move is 20 frames. The first 20 frames the layer moves on x, and then the y movement starts immediately after. If all of your keys are different, maybe you can find a certain amount of frames to delay that will get your desired effect. If your keys are all a certain number of frames apart, just put that number in for 20 below and you’ll be all set.
Joe Clay
Workbench.tv -
OK, this is a very specific solution, meaning that if your keys aren’t set up in a specific way, this won’t work. It would’ve been a lot easier if you had thought about that motion first. Anyway, this assumes your keys are 20 frames apart. As long as your keys are all the same, this will work. There’s an aep here if you want to see how my test was set up.
Basically it delays the y movement by the amount of frames specified after the frameDuration part below. So in my example project, the move is 20 frames. The first 20 frames the layer moves on x, and then the y movement starts immediately after. If all of your keys are different, maybe you can find a certain amount of frames to delay that will get your desired effect. If your keys are all a certain number of frames apart, just put that number in for 20 below and you’ll be all set.
Add the expression to the position property, obviously.
y = valueAtTime(time-thisComp.frameDuration*20)[1];
[value[0],y];Joe Clay
Workbench.tv -
Joe Clay
June 22, 2016 at 9:19 pm in reply to: Expression to control Channel Range (in Hue/Saturation)?So you’re trying to take that color from the fill and apply it to other layers? If that’s the case, unfortunately Colorama won’t output a color that you can apply to other layers.
On any color parameter, you can add this kind of expression.
hsla = rgbToHsl(value);
hsla[2] = .3; //change this value, link it to a slider or whatever
hslToRgb(hsla);Joe Clay
Workbench.tv -
No problem! Same to you!
Joe Clay
Workbench.tv -
What I meant by keyframing the null with the indexes, is that when you set up the null and the slider, the slider is keyframed to the index of the layer you want to be on. So if you want layer 3 to be on, you set it to 3. In the first version I sent over, you can’t put layers above your layers because their indexes will change.
If you use the “using null index” comp, the script subtracts out the controller null’s index so that the layer directly under the null is always 1 on the slider. That way you can just keep the group together.
Unfortunately I forgot that, for some stupid reason, you can’t keyframe the layer control. If you could, then you could just keyframe the layer you want to be visible. I’ve done some plugin programming, so if it’s possible maybe I can make a quick plugin that is basically the same layer control just keyframeable, haha.
Anyway, here’s the aep:
https://www.dropbox.com/s/al0vyje2zji1cfn/SwitchingOpacity.aep?dl=0Joe Clay
Workbench.tv -
Joe Clay
June 22, 2016 at 3:15 pm in reply to: Expression to control Channel Range (in Hue/Saturation)?You could also try this. Just set your output colors to vary in brightness only. I prefer this method over rgbToHsl if I can use it.
https://workbench.tv/tutorials/2016-06-17_ColorCycle/
Joe Clay
Workbench.tv -
Make a new null with a slider on it. Then add this expression to the layers you want to use in there. And keyframe it with the indexes you want to turn on. Be aware that you can’t put any layers in between or you will mess it up. There are some fixes for that if you need to add stuff in between.
You can also use a layer selector. That should work even if you put things in between I believe. I’ll check it and post up an AEP with the different options.
pos = thisComp.layer("Null 1").effect("Position")("Slider");
if(pos == index) { 100 } else { 0 };Joe Clay
Workbench.tv