-
2 sliders that change height and width on 1 layer?
I have an object, and two sliders.
Im trying to get this working so one slider alters the width of the object with its value, and the other alters the height.
Ok, so, it works when i want to use just the one slider,
height = thisComp.layer(“slider1”).effect(“Both Channels”)(“Slider”);
value+[0, height]But when i try add in the second slider, it stops working, and blows the image out huge.
height = thisComp.layer(“slider1”).effect(“Both Channels”)(“Slider”);
width = thisComp.layer(“slider2”).effect(“Both Channels”)(“Slider”);
value+[width, height]Can anyone spot what i’m doing wrong?
Im pretty new to expressions, so its probably the whole thing thats wrong. :SAny help would be great!