<p>This is very similar to your other question:
<a href="https://video.stackexchange.com/questions/33193/in-after-effects-how-can-i-generate-the-value-of-an-opposite-x-position-and-then/33201#33201">In After Effects how can I generate the value of an opposite x position and then send that value to an effect on another layer?</a></p>
<p>The answer is the same. Use a pick whip to link two controllers together.</p>

CC BY-SA 4.0
2021-02-08T17:28:39.130Z
yes i tried the answer on the other question but that seemed to duplicate the output of the first gradient onto the other layer, if i change the start point on  gradient 2 as on the answer on the other question then it shifts the two x's apart so i figured i must be asking the question incorrectly. I'm obviously a bit lost when it comes to pickwhipping two controllers together to get the desired outcome
tpg
CC BY-SA 4.0
2021-02-08T16:53:42.823Z
2021-02-08T16:53:42.823Z
tomh
<p>my composition width is 4480</p>
<p>I have 2 layers with a gradient ramp on each</p>
<p>once I've entered the start and end position of the gradient on the first layer I need to have the opposite equivalent start and end position values of that gradient generated in the second layer's gradient.</p>
<p>So with a comp width of 4480 if gradient 1 start x is 1000 and end x is 1250 then gradient 2 start x should be 3480 and end x is 3230. The Y is going to have a fixed position.<br />
Ideally I'd like to tie in the start x and end x of the first graident to an expression control such as a slider so i can  adjust the position of the points simultaneously.</p>

<after-effects><after-effects-expressions><automation>
In After effects how can I store the start and end point values of a gradient on one layer to generate the opposite values in another layer
tpg
# In After effects how can I store the start and end point values of a gradient on one layer to generate the opposite values in another layer

(Asked by: username_0 on 2021-02-08)

my composition width is 4480

I have 2 layers with a gradient ramp on each

once I've entered the start and end position of the gradient on the first layer I need to have the opposite equivalent start and end position values of that gradient generated in the second layer's gradient.

So with a comp width of 4480 if gradient 1 start x is 1000 and end x is 1250 then gradient 2 start x should be 3480 and end x is 3230. The Y is going to have a fixed position.  
Ideally I'd like to tie in the start x and end x of the first graident to an expression control such as a slider so i can adjust the position of the points simultaneously.

**Tags:** after-effects, after-effects-expressions, automation


---

## 1 answers

### Answer by username_1 on 2021-02-08. Score: 0

This is very similar to your other question:
[In After Effects how can I generate the value of an opposite x position and then send that value to an effect on another layer?](https://video.stackexchange.com/questions/33193/in-after-effects-how-can-i-generate-the-value-of-an-opposite-x-position-and-then/33201#33201)

The answer is the same. Use a pick whip to link two controllers together.

> **Comments:**
> **username_0**: yes i tried the answer on the other question but that seemed to duplicate the output of the first gradient onto the other layer, if i change the start point on  gradient 2 as on the answer on the other question then it shifts the two x's apart so i figured i must be asking the question incorrectly. I'm obviously a bit lost when it comes to pickwhipping two controllers together to get the desired outcome  

---

