-
expression linking distortion mesh positions to a slider
I want the distortion mesh I’ve already animated on a layer to work with a slider. I can’t time remap the layer because it’s already a time remapped comp which I need to be able to change WHILE it is mesh warping… so I think I need to link the distortion mesh to a slider. For example, when the slider is at 2, I’d like the mesh to be a certain way, and when the slider is on 3, I’d like it to look a different way. I can’t figure out how to add and expression to distortion mesh. Is it even possible?
I already wrote an expression that would do this for position and I’d like to change it to work with distortion mesh…
if (thisComp.layer(“HEAD TURN”).effect(“Slider Control”)(“Slider”) == 0){
DISTORTION MESH DATA 0;}
else if (thisComp.layer(“HEAD TURN”).effect(“Slider Control”)(“Slider”) == 1){
DISTORTION MESH DATA 1;}
else if (thisComp.layer(“HEAD TURN”).effect(“Slider Control”)(“Slider”) == 2){
DISTORTION MESH DATA 2;}
else if (thisComp.layer(“HEAD TURN”).effect(“Slider Control”)(“Slider”) == 3){
DISTORTION MESH DATA 3;}I just don’t know where to find the distortion mesh data or set an expression on distortion mesh. Anyone got any ideas?