ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Expression for gradient controller (element position)

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Filip Cerny
Expression for gradient controller (element position)
on Oct 15, 2019 at 8:30:59 am

Hey there!

I am using this expression to control an array of dots via background image (gradient) values (scale at the moment) as you can see in this tutorial:

(based on Dan Ebberts'

I'd like to control their position aswell - when gradient ring crosses the array it would offset the dots away from the center of the array. Any ideas on how to write that expression for position attribute is welcome!


x = thisComp.layer("Gradient").sampleImage(transform.position, [.5,.5]/2, true, time)[0];

Return to posts index

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