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

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

New Here ,
Sep 19, 2018 Sep 19, 2018

7.png

TOPICS
Expressions
4.3K
Translate
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

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

Unbenannt.PNG

Cheers,

Martin

Translate
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

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!

Translate
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

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

Translate
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
LATEST

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

Translate
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