-
valueAtTime preexpression bug when used on paths?
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());
Sorry, there were no replies found.