• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can i exprss the width of the rectangle(shape layer)with AE expressions?Thanks!

New Here ,
Sep 19, 2018 Sep 19, 2018

Copy link to clipboard

Copied

7.png

TOPICS
Expressions

Views

3.5K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 21, 2018 Sep 21, 2018

Copy link to clipboard

Copied

Go into Rectangle 1 -> Size and there you have all the values, you need.

Unbenannt.PNG

Cheers,

Martin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 22, 2018 Sep 22, 2018

Copy link to clipboard

Copied

thanks! but i still can‘t  get the exact size of the rectangle (i want the value is exact and is expressed with exact units(px)).

thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Sep 24, 2018 Sep 24, 2018

Copy link to clipboard

Copied

Is your question how to deal with expressions or how to access the width of a shape layer?

Do you want to SET or want to GET the width via expressions?

To set the width, it's as easy as this - applied to Rectangle Path -> Size

[500, value[1]];

To get the width, you apply this on an different layer:

thisComp.layer("Shape Layer 1").content("Rectangle 1").content("Rectangle Path 1").size[0]

I hope, this helps!

*Martin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 01, 2019 Mar 01, 2019

Copy link to clipboard

Copied

LATEST

Thanks!This is useful!(i‘m so sorry  for not replying you as soon as possible).

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines