ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Resolve and expression over time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Taylor James
Resolve and expression over time
on Jul 31, 2019 at 5:55:25 pm

Hello! I've run into an issue trying to build a rig for an animation project i'm doing.

The gist of the project is:

I need to lay a bunch of dynamic shape objects end to end -- I can animate them and they'll adjust the position in relation to the shape in front of them. This part works, beautifully. The problem is my in my animatic the animation draws from the center -- so I tried to build a null object that repositions the string of shapes into the center based on the current size of all the shapes in the string.


Also great, it works, it just doesn't update unless I physically move the layer and force it to update.

How can I get this to update?

trim = (Math.abs(effect("End")("Slider") - effect("Start")("Slider"))/100);
half = thisComp.width*trim;
center = (thisComp.width/2) - (half/4);

findName = "SQ";
x = 0;
n = time * 24
sizer = 0;
while (n > timeToFrames(thisComp.duration)) {
for (i =index; i &lt;=thisComp.numLayers; ++i) {
if (thisComp.layer(i).name.indexOf(findName) != -1) {
sizer = sizer + thisComp.layer("SQ,"+x+"").effect("W")("Slider");

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved