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

Automation Blocks - Get property value that have an expression

Community Beginner ,
Nov 11, 2024 Nov 11, 2024

Hello!

I'm trying to get a value from the Position property that have an expression which is modifing the original value to a new one, but whenever I use the Get Attribute type "Value" block, it gets the raw value instead the new one with the expression.

I even tried using a custom script block with the ".valueAtTime(currentTime, true)" to get value with expression but still no good.

Is there a way to actually get the current value of the property?

 

Thank you!

TOPICS
Expressions , How to , Scripting
492
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 11, 2024 Nov 11, 2024

Actually, Automation Blocks returns the post expression value. I just did a quick check and on my machine it works as expected:

Screenshot 2024-11-11 at 21.24.37.png

Here the pre-expression value is [50,50] and the expression adds 100 to both x and y.

Maybe you are accidentally retrieving the value of a wrong property or some other bug in your code?

Translate
Community Expert ,
Nov 11, 2024 Nov 11, 2024

I think "true" gives you the pre-expression value. Try "false".

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
Community Beginner ,
Nov 11, 2024 Nov 11, 2024

Yea, I tried both. Each returns a different value, but neither are correct.

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
Community Expert ,
Nov 11, 2024 Nov 11, 2024

Actually, Automation Blocks returns the post expression value. I just did a quick check and on my machine it works as expected:

Screenshot 2024-11-11 at 21.24.37.png

Here the pre-expression value is [50,50] and the expression adds 100 to both x and y.

Maybe you are accidentally retrieving the value of a wrong property or some other bug in your code?

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
Community Beginner ,
Nov 11, 2024 Nov 11, 2024
LATEST

yea! I just deleted everything and started from scratch, defenily it was something wrong with my code (as it's the case of 99% of the issues that happens haha)

thank you for the help!

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