ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: How to find the sum of the vectors inside a custom array?

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Dan Ebberts
Re: How to find the sum of the vectors inside a custom array?
on Oct 25, 2019 at 4:34:25 pm

I guess I'd do it like this:


accum = 0;
for (i = 3; i <= thisComp.numLayers; i++){
accum += thisComp.layer(i).sourceRectAtTime(time,false).width;
}
accum



Dan



Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]