Copy link to clipboard
Copied
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!
Actually, Automation Blocks returns the post expression value. I just did a quick check and on my machine it works as expected:
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?
Copy link to clipboard
Copied
I think "true" gives you the pre-expression value. Try "false".
Copy link to clipboard
Copied
Yea, I tried both. Each returns a different value, but neither are correct.
Copy link to clipboard
Copied
Actually, Automation Blocks returns the post expression value. I just did a quick check and on my machine it works as expected:
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?
Copy link to clipboard
Copied
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!