I want to create a Display Layer with a certain name, if there is no other layer with that same name, but I have no idea of how to search for a layer.Does anyone knows how to do that?
Thanks
this way for instance:
CODE { string $name = "theNameYouAreSearchingFor"; if (size(ls -type "displayLayer" $name)) print ($name + " already exists!\n"); else print ($name + " does not exist!\n");}
ls -type "displayLayer" $name
you can also use the objExists command it will tell you if a node exists that is that name