-
Is there expression or function that reads what type of layer, a layer is?
for instance if I were to type the expression/function (lets say its called .type) into a text layer source text, the text would say “text layer” if I were to have a comp above that text layer and typed the expression with an index-1 the text would say “comp”.
I want to write an if statement that executes one function if there is a text layer above and another if there is a comp.
something like
if(thisComp.layer(index-1).type==”comp”)”its a comp”;”it can be text”so yea just wondering if such a function exists
thanks,