Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Expression for gradient controller (element position)

  • Expression for gradient controller (element position)

    Posted by Filip Cerny on October 15, 2019 at 8:30 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: 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,
    Zmaslo

    x = 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.

    Dan Tiffany replied 4 years, 5 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Tiffany

    December 8, 2021 at 3:08 am

    Did you ever find an answer to the question?

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy