Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deleteThese = #()
- for i = 0 to layerManager.count-1 do
- (
- ilayer = layerManager.getLayer i
- nodes = ilayer.nodes &theNodes
- if ( theNodes.count == 0) do (
- if (ilayer.name != "0") do (
- if (ilayer.current) do (
- default = LayerManager.getLayerFromName "0"
- default.current = true
- )
- append deleteThese ilayer.name
- )
- )
- )
- for layer in deleteThese do (
- layerManager.deleteLayerByName layer
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement