user21697: Property "Size" scale rectangle in two directions, like a mirror. And "Scale" distort roundness.
How scale rectangle in one direction without roundness scale without expressions?

user32965: Since copying from a youtube video is annoying, here's the expression put in content > transform > anchor point:
box_width = content("Rectangle 1").content("Rectangle Path 1").size[0];
box_height = content("Rectangle 1").content("Rectangle Path 1").size[1];

[box_width/2, box_height/-2]


user21303: Assuming this is a shape layer created with the rectangle tool, you can solve this by going to Shape Layer 1 -> Contents -> Rectangle 1 -> Rectangle Path 1 -> Size, and unchecking the icon that looks like two chain links, and then changing either of the two numeric values independently to change either the width or height of the rectangle, without changing or distorting the roundness.


21697: <p>Property "Size" scale rectangle in two directions, like a mirror. And "Scale" distort roundness.</p>

<p>How scale rectangle in one direction without roundness scale without expressions?</p>
 32965: <p>Since copying from a youtube video is annoying, here's the expression put in content &gt; transform &gt; anchor point:</p>
<pre><code>box_width = content(&quot;Rectangle 1&quot;).content(&quot;Rectangle Path 1&quot;).size[0];
box_height = content(&quot;Rectangle 1&quot;).content(&quot;Rectangle Path 1&quot;).size[1];

[box_width/2, box_height/-2]
</code></pre>
 21303: <p>Assuming this is a shape layer created with the rectangle tool, you can solve this by going to Shape Layer 1 -> Contents -> Rectangle 1 -> Rectangle Path 1 -> Size, and unchecking the icon that looks like two chain links, and then changing either of the two numeric values independently to change either the width or height of the rectangle, without changing or distorting the roundness.</p>

<p><a href="https://i.stack.imgur.com/cwRLj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cwRLj.png" alt="screen shot"></a></p>
