-
Expressions that work in all languages, best practises
Hi everyone,
I want to make sure these expressions work in all AE languages:
comp("Comp 1").layer("myLayer")("Effects")("myCtrl 1")("Slider")
comp("Comp 1").layer("myLayer")("Effects")("myCtrl 2")("Slider")Now, if all properties use matchNames, it looks like this:
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")("ADBE Slider Control")("ADBE Slider Control-0001")
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")("ADBE Slider Control")("ADBE Slider Control-0001")So they are basically identical and the second expression is not reached.
Is the safest approach to use the index of the propertyGroup:
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")(1)("ADBE Slider Control-0001")
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")(2)("ADBE Slider Control-0001")Or are one allowed to use the name (not matchname) on the individual effects, like this:
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")("myCtrl 1")("ADBE Slider Control-0001")
comp("Comp 1").layer("myLayer")("ADBE Effect Parade")("myCtrl 2")("ADBE Slider Control-0001")