Convert layer brightness to position
This expression allows you to use any layer as a offset map for the 3D-layer. Used in the Position parameter.
mult = 1000; grad = thisComp.layer("position map"); rad = [.5,.5]; z = mult * rgbToHsl(grad.sampleImage([value[0],value[1]], rad, true))[2]; value - [0,0,z]
Recommended Posts