ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

valueAtTime preexpression bug when used on paths?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Arne Münch
valueAtTime preexpression bug when used on paths?
on Jun 21, 2020 at 12:44:19 pm
Last Edited By Arne Münch on Jun 21, 2020 at 12:55:19 pm

Hello there

valueAtTime(time, preExpression) in scripting seems not to work when used on paths. The preExpression parameter acts always like it is false.
Can you please try for me, I tested on cc2018 and cc2020 and this script creates a keyframe after calculating the expression, so the original path has changed, but this shouldn´t happen:

var actItem = app.project.activeItem;
var selProps = actItem.selectedProperties;
selProps[1].setValueAtTime(0, selProps[1].valueAtTime(0,true))

For testing purposes you can just use this expression on a path and test if the script changes the original preExpression path (by selecting the path property and running the script), which it shouldn´t.

originalPath = thisProperty;
createPath([[-100,0] , [100,0]] , [] , [] , originalPath.isClosed());

https://www.instagram.com/arnemuench/


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]