Skip to main content
Question

Remove layers in scripter

  • October 28, 2022
  • 0 replies
  • 230 views

haburaaashi


I just want to find all layers with the same name in all the selected artboards, the code seems doesn’t work~
What should be the correct way to write the code?

for(let i=0;i<selection().length;i++) {
	let layers = await find([selection()[i]], n => true);
	layers.forEach(n => {
		if(n.name == 'Annotation'){
			n.remove();
		}else{
			return false;
		}
	});
};

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings