Copy link to clipboard
Copied
Hello;
How to check if selected layer is text layer or not.
For example, I'm used to use the "instanceof" method to check if a selected layer is a shape layer:
selectedLayer instanceof ShapeLayer --> (returns true when it's).
However for the text I can't find an expression to do the same thing. Meanwhile, I searched so many documentations and browsed so many forums and sites.
Thanks in advance.
You'd just use instanceof TextLayer in the same way.
Copy link to clipboard
Copied
You'd just use instanceof TextLayer in the same way.