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

Automation Blocks - Adding Expressions to Shape Size

Participant ,
Nov 09, 2022 Nov 09, 2022

Copy link to clipboard

Copied

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

Views

160

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

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

 

Votes

Translate

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

Copy link to clipboard

Copied

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

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