-
Creating a color picker using the sampleImage expression
Hey everyone, I have a question regarding an expression to link the colour of a layer to the position of a point control.
So far this is what I’ve got:
colorPicker = effect(“Color_01”)(“Point”);
colors = thisComp.layer(“Color_pallet”)colors.sampleImage(colorPicker,radius = [.5, .5],postEffect = true, t = time)
This works for everything in my comp so far. I’ve got a colour pallet layer with all the colours the point controllers in my layers are sampling the colours from. My issue is that whenever I bring in a psd image with an alpha and apply a fill effect to it, which then is linked to the colour pallet via the expression above, it always turns the colour to black. It seem to not take into consideration the expression at all.
It would be awesome if someone knows how to fix this issue. Here’s a screenshot of the problem:
Thanks for your help!

