<p>Use the <a href="https://helpx.adobe.com/after-effects/using/animating-puppet-tools.html" rel="nofollow">puppet tool</a> to do this. Place puppet pins on the rectangle and they will allow you to distort the rectangle to follow them. You may need other puppet pins or starch to hold the rest of the rectangle in place. </p>

<p>Then connect their position to the null using an expression:</p>

<pre><code>thisComp.layer("&lt;the name of the null&gt;").transform.position
</code></pre>

<p>or if the nulls are parented to something else:</p>

<pre><code>thisComp.layer("&lt;the name of the null&gt;").toWorld(thisComp.layer("&lt;the name of the null&gt;").transform.anchorPoint)
</code></pre>

<p><strong>EDIT</strong> Are you asking whether you can attach specific points on a vector path to a null? Not natively, but there is a third party plugin that lets you animate individual path points: <a href="http://aescripts.com/bao-mask-avenger/" rel="nofollow">http://aescripts.com/bao-mask-avenger/</a> Fairly pricey though.</p>

CC BY-SA 3.0
2016-03-05T12:03:22.440Z
2016-03-05T12:32:52.097Z
2016-03-05T12:32:52.097Z
stib
<p>Can I select two points on a rectangle and have them follow a null object's movement? I want one side of several shapes to stay put, and the other side to track an eased movement.</p>

<p>I believe stib has answered this, but as per tomh's comment I'll post a gif anyway to explain. There is probably an even simpler way to do what I'm trying to.</p>

<p><a href="https://i.sstatic.net/2vMQb.gif" rel="nofollow noreferrer"><img src="https://i.sstatic.net/2vMQb.gif" alt="swipe effect"></a></p>

<p>The grey box on the right is swiped right to left with a steep ease curve. The boat graphic needs to scale with the same curve as the X position of the grey box so they move together. Making the first ease is simple, but I had to 'bake' the second curve frame by frame, then smooth it as best I could, but the OCD in me wants the curve to be identical! It also might be useful for future projects.</p>

<p>I thought, if I could make a rectangle where the two left paths are stuck on the far left of the comp, and the two right paths track the movement of the grey box, that this would make my perfect, mask for the scaling boat layer.</p>

CC BY-SA 3.0
2016-03-05T08:40:47.653Z
I think you might need to add a diagram to explain what you mean. Do you mean that the rectangle will warp in shape? If so, you could look at using puppet pins, which can be parented to separate nulls.
tomh
<after-effects><animation>
After Effects, can I parent specific points on a path to a null object?
Paul Murphy
# After Effects, can I parent specific points on a path to a null object?

(Asked by: username_0 on 2016-03-04)

Can I select two points on a rectangle and have them follow a null object's movement? I want one side of several shapes to stay put, and the other side to track an eased movement.

I believe username_2 has answered this, but as per username_1's comment I'll post a gif anyway to explain. There is probably an even simpler way to do what I'm trying to.

[![swipe effect](https://i.sstatic.net/2vMQb.gif)](https://i.sstatic.net/2vMQb.gif)

The grey box on the right is swiped right to left with a steep ease curve. The boat graphic needs to scale with the same curve as the X position of the grey box so they move together. Making the first ease is simple, but I had to 'bake' the second curve frame by frame, then smooth it as best I could, but the OCD in me wants the curve to be identical! It also might be useful for future projects.

I thought, if I could make a rectangle where the two left paths are stuck on the far left of the comp, and the two right paths track the movement of the grey box, that this would make my perfect, mask for the scaling boat layer.

**Tags:** after-effects, animation

> **Comments:**
> **username_1**: I think you might need to add a diagram to explain what you mean. Do you mean that the rectangle will warp in shape? If so, you could look at using puppet pins, which can be parented to separate nulls.  

---

## 1 answers

### Answer by username_2 on 2016-03-05. Score: 0 | Accepted answer

Use the puppet tool to do this. Place puppet pins on the rectangle and they will allow you to distort the rectangle to follow them. You may need other puppet pins or starch to hold the rest of the rectangle in place. 
Then connect their position to the null using an expression:
thisComp.layer("").transform.position

or if the nulls are parented to something else:
thisComp.layer("").toWorld(thisComp.layer("").transform.anchorPoint)

EDIT Are you asking whether you can attach specific points on a vector path to a null? Not natively, but there is a third party plugin that lets you animate individual path points: http://aescripts.com/bao-mask-avenger/ Fairly pricey though.


---

