alexander-ladygin / illustrator-scripts

Adobe Illustrator scripts
MIT License
971 stars 315 forks source link

Can you PLEASE create a script for: #16

Closed defactofrank closed 2 years ago

defactofrank commented 2 years ago

Discussed in https://github.com/alexander-ladygin/illustrator-scripts/discussions/15

Originally posted by **defactofrank** March 5, 2022 ## Copy/Pasting a single layer into many layer groups? 😭 #### **Example:** (`` click to enlarge image ``) animated gif of my adobe illustrator script suggestion To begin with I'm having trouble exporting PNG files from artboards that have many layers each | example of | my artboards | #=layer amount | |:--:|:--:|:--:| | 92 | 56 | 283 | | 64 | 24 | 5 | | 310 | 12 | 65 | The Artboards all have the same canvas size, but the layers are part of a collective. Some shapes inside the layer-groups are 50x50px, others 350x80px. I need the exported PNG to have the full transparent canvas size. As you can see in the video; When I "Generate Asset" before my bad solution, only the shape itself gets exported. My "hack" (read: hillbilly-solution) is to place a rectangle the size of the artboard on top of the layer with the opacity reduced to 0%. This works, but the high numbers in the table above are non-fictional (and lacking many artboards) > After 2 days of searching, this appears to not be natively possible in Illustrator, so a script is needed. ### Please help me. I don't want to copy/paste manually over 2500 times.