-
Layer Control set to “None”
Hello, I’ve got a quick question about using Layer Controls. If the control is set to none, is there any way to determine that?
I’ve tried examining the values of all of the following
thisComp.layer("Null 1").effect("Layer Control")("Layer")
thisComp.layer("Null 1").effect("Layer Control")("Layer").index
thisComp.layer("Null 1").effect("Layer Control")("Layer").value
and all I get is an error message that says “…effect layer parameter is set to None, can’t use it.” Googling that error led to very spare results and I haven’t yet found good documentation on the properties of a layer control.
I have a text layer whose source text I’d like to use as a prefix to a different text layer. Ideally, I’d like to use a layer control set to none to disable use of the prefix, or set to the prefix text layer to use the prefix. I could use a checkbox and search for the prefix layer by name if the box is checked, but this method seems more flexible, if it’s possible.
Thanks for the help.
David