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

Automation Blocks - Adding Expressions to Shape Size

Contributor ,
Nov 09, 2022 Nov 09, 2022

I'm trying to build a Shape Layer with some expressions and am coming across some difficulties.

 

I'm not able to add an expression to the size field of a Rectangle Shape.

InnerRectangeExpression.png

 

Can't add the expression via a text block.

SizeFieldNotAcceptingText.png

Nor would it accept the expression when formatted via a Create List Block

SizeFieldNotAcceptingAltList.png

If figured that it might be because it was that it was just look for two numbers, so I when I broke it into values, everything worked fine, but the live "expression" [thisComp.width, (1*width)/2.39] is not settable.

ValuesSetProperly.png

Is there any way to set this expression?

TOPICS
Scripting
255
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

correct answers 1 Correct answer

Community Expert , Nov 10, 2022 Nov 10, 2022

Hi,

the "Add Shape" block only allows to set a value, but not an expression. After creating the shape path, you need to use the "Set Attribute of Property" block to set the expression.

Alternatively, you can save the shapes and the expressions applied to them in an animation preset and then apply the preset like I do in this tutorial: https://mamoworld.com/docs/automation-blocks/tutorials-ae/programmingAHighlightTool

 

Translate
Community Expert ,
Nov 10, 2022 Nov 10, 2022
LATEST

Hi,

the "Add Shape" block only allows to set a value, but not an expression. After creating the shape path, you need to use the "Set Attribute of Property" block to set the expression.

Alternatively, you can save the shapes and the expressions applied to them in an animation preset and then apply the preset like I do in this tutorial: https://mamoworld.com/docs/automation-blocks/tutorials-ae/programmingAHighlightTool

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
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