Search found 2 matches
- August 19th, 2018, 11:07 pm
- Forum: Scripts Discussion
- Topic: how to check whether a selected layer is a nullLayer?
- Replies: 2
- Views: 16414
Re: how to check whether a selected layer is a nullLayer?
The check for null layer is just layer.nullLayer , not layer instanceof nullLayer (function () { var comp = app.project.activeItem; var layer = comp.selectedLayers[0]; if (layer.nullLayer) { alert('Layer is a null') } else { alert('Layer is not a null'); } })(); See: http://docs.aenhancers.com/laye...
- July 25th, 2018, 10:09 pm
- Forum: Scripts Discussion
- Topic: how to check whether a selected layer is a nullLayer?
- Replies: 2
- Views: 16414
how to check whether a selected layer is a nullLayer?
Sorry my Mother tongue wasn't English,so my English wasn't good enough. I wanted to write a script which need a feature that check whether a selected layer is a null Layer,therefore I try to write a simple script to test,but it didn't work. this is my test script: var myComp = app.project.activeItem...