question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

Can you PLEASE create a script for:

See original GitHub issue

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.

Thank you for the scripts you shared already. Iā€™ve been using about a handful quite often

Please help me. I donā€™t want to copy/paste manually over 2500 times.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
creoldcommented, Mar 18, 2022

scripts-for-groups.zip

If you select hundreds or thousands of groups at a time, it will work very slowly. I havenā€™t tested it myself.

0reactions
creoldcommented, Dec 1, 2022

@defactofrank oh, itā€™s been so many months. šŸ˜ƒ By the way, I started an alternative source for donations https://fantalks.io/r/sergey

Read more comments on GitHub >

github_iconTop Results From Across the Web

Answered: Exercise 1: Please create a script thatā€¦ | bartleby
Solution for Exercise 1: Please create a script that print ā€œHello, your name.ā€ ā€¢ Exercise 2: Please create a directory call user_bin, and...
Read more >
Solved Exercise 1: Please create a script that print ā€œHello
Question: Exercise 1: Please create a script that print ā€œHello, your name.ā€ ā€¢ Exercise 2: Please create a directory call user_bin, and add...
Read more >
How to write a bash script - OMGenomics
Run the scriptā€‹ā€‹ The ./ means that the script is in the same directory. If you go into another directory, you have to...
Read more >
Add "not" to if statement in shell script - Ask Ubuntu
ā€œNotā€ is spelled ! , with no punctuation and a space after it. if ! id "$user_name" > /dev/null 2>&1 then echo 1>&2...
Read more >
Classic SysAdmin: Writing a Simple Bash Script
Start small and use scripts to automate small tasks. Over time you can build on what you know and wind up doing more...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found