-
problem with an expression (that works in other composition)
hello guys,
i have a problem applying an expression, that otherwise works in a different situation in a different comp (with some variations).i have a layer named “Icon options”. in this layer there are some sliders named “1”, another named “2”, “3” and so on
i have another layer named A,and this layer has a slider named “Opacity number”.what i’m trying to achieve is to link the opacity of the layer A to the slider named “1” or “2” or “3” this way:
– in the layer A i want to assign to the slider named Opacity number the number i want, let s say 2
– then i want to use the slider named “2” from “Icon options” to modify the opacity for the layer Aso i’ve tried
try{
NAME=Math.floor(effect(“Opacity number”)(“Slider”));thisComp.layer(“Icon options”).effect(NAME)(“Slider”);
} catch (err) {
x=[0]
}in this point, i’m getting the zero value from the fact that it gets an error. if i remove the catch err, i’m getting this error: Class “Effect” has no proprety or method named “Slider”
Any ideas?
Thanks in advance