John Madison
Forum Replies Created
-
Roland, this works pretty good. Thanks!
-
Roland, I am not sure how your options works. Can you elaborate?
-
That seems an option, though I feel there is a better workaround. Nevertheless, I will look into it.
Thanks
-
Yes its always three. Thus with each duplication the layer which would have the expression would go up by three.
A1
B1
C1 (Layer with expression)After 1st Duplication
A2
B2
C2 (layer with expression)After 2nd Duplication
A3
B3
C3 (layer with expression) -
Ok, perhaps i am explaining in more complex terms than it needs to be.
Layer A
Layer B
Layer Cduplicated once
Layer A2
Layer B2
Layer C2 and so onIn the above schema I now have 6 layers altogether. You may ignore all instances of Layer A and B but they have to be there so they still affect Layer C and its subsequent duplications index value.
I can write a simple expression on Layer C to turn on the effect based on the value of the slider, so if slider value is 1 i want the effect to be on, but Layer C2 should still be off. If slider value is 2, now only Layer C2 is on and Layer C is off. Do you get the idea? I want to write the expression once in Layer C as it is possible that there may be up to 100 duplications.
-
Dan,
You’ve been a lot of help with my queries, but I’ve had to change the above setup slightly and so need help again with the expression.
The setup is like this:
Layer A
Layer B
Layer CLayer C is the one i want to control using the expression above and in normal circumstances i.e. no layers above it, the expression works like a gem. The problem is that Im duplicating ALL three layers quite a few times and would rather not write out the expression on every duplication of Layer C.
As you can see, the index of Layer C and its subsequent duplications change every time I duplicate the bunch, so how do i change the expression to take this factor in account? The first Layer C has index-2, Layer C2 is index-5, Layer C3 is index-7 and so on…
Your help is much appreciated mate! -
Wow! Dan you’re the man! Thanks. If its not too much trouble, could you explain how it works.
-
Yes I am and here is the expression:
ctrl = thisComp.layer(“Adjustment Layer 1”).effect(“Slider Control”)(“Slider”)
if (ctrl >= index-1) 100 else 0Yes, the effect can be turned on/off such as the glow effect.
-
Hey Dan,
Thanks, but i think there might have been a misunderstanding. There is no motion! The layers are spread across the screen from left to right (no over lapping). Their visibility is determined by a controller which toggles the opacity. So for example, when the slider is 1 the first image is visible and all the other 19 are not and so on. I want to add an effect on the last visible layer in the row. So if 10 are visible then the effect should be on for the 10th layer. If 15 are visible, then on the 15th etc.
The problem: how do i determine, using expression, which is the last visible layer? -
John Madison
September 24, 2011 at 9:56 am in reply to: Referencing the layer index of another comp?Dan,
So you are saying that i need to add an expression on the position value of the image layer in comp A and then duplicate this in the project bin? If so, what will this expression look like?
Thanks