-
Expression for gradient controller (element position)
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: https://www.youtube.com/watch?v=1UaZNcVobhg
(based on Dan Ebberts’ https://www.motionscript.com/design-guide/sample-image.html)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!
Thanks,
Zmaslox = thisComp.layer("Gradient").sampleImage(transform.position, [.5,.5]/2, true, time)[0];
100*[x,x]Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.