Layer creation using script