ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Slider picks color off of Gradient Ramp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Shane English
Slider picks color off of Gradient Ramp
on Feb 17, 2017 at 6:37:42 pm

Looking for help to create a fill expression. I want a slider control to pick the x axis of another comp and then have that feed to a color picker which would then be the color fill.

I'm not sure how to have the slider control control the position.

target = comp("Color_ramp").layer("Color_ramp");
colorpicker = comp("Color_ramp").x= effect("Slider Control")("Slider");
target.sampleImage(target.fromWorld(colorpicker.position), [0.5,0.5], true, time)

Return to posts index

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