<p>In this situation I would right-click on the path options in your rectangle and choose "convert to Bezier".  Then instead of adjusting the scale, I would keyframe the path, and change the shape of the path in this way.  </p>

CC BY-SA 3.0
2017-12-11T07:49:48.053Z
@Jared, if it answers your question, mark the answer as correct, to help others with this question
stib
CC BY-SA 3.0
2017-12-09T08:11:49.560Z
2017-12-09T08:11:49.560Z
tomh
<p>I am animating a rectangle with a stroke and would like to it scale up and down along its length in only one direction while keeping the stroke fixed.</p>

<p>I have managed to either keep the stroke fixed but not scale it in one direction, or to scale it in one direction but not keep the stroke fixed. :( </p>

<p>I have learned that in order keep the stroke fixed I can create a shape layer and edit the "size" rather then the scale. The problem is that I can't get it to "scale" in one direction now. (I know while editing the scale I can move the anchor point to the side I would like to scale from but while editing the size moving the anchor point has no effect and I haven't been able to find a solution.</p>

<p>Any suggestions? :) Thanks!!</p>

<after-effects><animation><file-formats>
How to scale a rectangle along its length in one direction while keeping the stroke fixed in after effects?
jared
# How to scale a rectangle along its length in one direction while keeping the stroke fixed in after effects?

(Asked by: username_0 on 2017-12-08)

I am animating a rectangle with a stroke and would like to it scale up and down along its length in only one direction while keeping the stroke fixed.

I have managed to either keep the stroke fixed but not scale it in one direction, or to scale it in one direction but not keep the stroke fixed. :(

I have learned that in order keep the stroke fixed I can create a shape layer and edit the "size" rather then the scale. The problem is that I can't get it to "scale" in one direction now. (I know while editing the scale I can move the anchor point to the side I would like to scale from but while editing the size moving the anchor point has no effect and I haven't been able to find a solution.

Any suggestions? :) Thanks!!

**Tags:** after-effects, animation, file-formats


---

## 1 answers

### Answer by username_1 on 2017-12-09. Score: 0 | Accepted answer

In this situation I would right-click on the path options in your rectangle and choose "convert to Bezier". Then instead of adjusting the scale, I would keyframe the path, and change the shape of the path in this way.

> **Comments:**
> **username_2**: @Jared, if it answers your question, mark the answer as correct, to help others with this question  

---

