Git Product home page Git Product logo

illustrator-scripts's People

Contributors

creold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

illustrator-scripts's Issues

TrimMask hangs my Mac when launched by action

Hi! I have created an action in Illustrator to launch your TrimMask.jsx script and it crashes my Mac but if I launch it normally (from Illustrator menu) it works. May be there is a bug? Best regards, Yuri

Request: Add artboard's name to canvas

Is there a script for Illustrator that lets you place the artboard name on the artboard itself?
I.e. the artboard is named "Figure 1", so this should be put as text on the top left corner.

Can you PLEASE create a script for:

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.

FitSelectionToArtboards-Lite and FitSelectionToArtboards are not working anymore after resetting my Illustrator Preferences.

I can't tell if it's the fact that I reset my preferences, or if a new update to Illustrator caused these scripts to break.

FitSelectionToArtboards-Lite is correctly resizing the selected item, but incorrectly placing it directly above the artboard instead of centered in the middle.

See this video:

Illustrator_50Vkk0OpXV.mp4

(Also uploaded here because GitHub seems to be misbehaving: https://streamable.com/8nmpsn)

I think the fitToArtboard function is working as expected, but the centerToArtboard function is broken.

It also no longer handles multiple selections. I'm pretty sure that previously I could select multiple items, run the script, and all of my selections would be fit to multiple empty artboards. Similar to the FitSelectionToArtboards script but with no dialog.

Setting that aside, the FitSelectionToArtboards is also misbehaving in the same way. It correctly resizes the artwork but again places each object directly above the artboard instead of centered in the middle.

See this video:

Illustrator_uuTGZXz1mU.mp4

(Also uploaded here because GitHub seems to be misbehaving: https://streamable.com/qgx6h8)

I am terrible with extendscript, but I managed to get FitSelectionToArtboards-Lite to work by modifying line 283 from:

centerY = top + (itemSize.h + (isFlipY ? -1 : 1) * abHeight) / 2;

To:

centerY = (top + (itemSize.h + (isFlipY ? -1 : 1) * abHeight) / 2) - itemSize.h;

And the same modification to FitSelectionToArtboards also seemeed the fix the problem.

However, I'm positive this isn't the correct approach, but just a hack. I'm hoping you can find some time to update the scripts and are able to reproduce the issue.

Maybe there is an important setting that was reverted when I reset my preferences that broke the script?

Anyway, thanks for all your hard work on these scripts. Hoping there is a solution.

Jay

Batch Tracing from Folder ignores preset

First and foremost, I would like to thank you for your great work.

I have just spent hours trying to achieve batch processing with image tracing using Adobe tools, where I can choose my own preset, but to no avail. I also explored scripting, which was able to load my preset, but the number of colors was always set to 100, even though it is defined differently in the preset. In the end, I tried to define the parameters in the script itself, but I lost patience because the settings offer different possibilities and options than the sliders in Illustrator itself.

I was just about to go to bed when I found your scripts, which are brilliant. Unfortunately, there is a problem with batch processing from a folder where the selected tracing preset is being ignored. Everything works correctly with open files. I was also a bit confused because the script can only be opened when a file is open; otherwise, it does not respond.

Perhaps you have a solution to this problem or an idea of how to fix it?

Kind Regards

[BatchRenamer] Renamer won't recognize text object default names

Script doesn't recognize default names of text objects

Description:

When renaming a text object, its name is automatically inserted into the script. However, if the object's name is left as the default (i.e., it matches the text content of the object), the script ends up with an empty space, even when using the {N} placeholder.

Steps to reproduce:

  1. Create a new text object with the default name (which matches its content).
  2. Use the script to process the object.
  3. Observe that where the object's name should appear, there is an empty space, even if {N} is used.

Expected behavior:
The script should be able to recognize and insert the default names of text objects

Actual behavior:
The script leaves an empty space in place of the object's name if the name is the default.

image image

TrimMasks.jsx explodes compound paths

Really great script, have used many times. My issue: TrimMasks unfortunately removes most existing compound paths / groups.

(Sorry for Dutch interface in screenshots)

If this is unsolvable, a script that can group (or compound) items based on color would help. The workflow would then become: 1) select all countries 2) give each country a unique color 3) run TrimMask 4) Run script GroupbyColor or CompoundByColor.

Keep up the great scripts!!

image
image

Running SplitPath from an Action causes the script to not work correctly.

If you attempt to run the SplitPath.jsx script from an Action (through the simple "Insert Menu Item..." option), the SplitPath UI will appear as normal, but when the OK button is pressed, the expected splitting of the paths doesn't happen, and instead the paths and shape are only grouped into a Live Paint group.

SelectPointsType

Select Points Type is not Working ??
Adobe: CC 2020 , OS: windows 10 2004

Thanks

BatchTrace Options

I would like to ask if you know if there is a way to export the traced results back to the original file ?
for example if the input file was a .psd file make illustrator trace and save the results back to the .psd file. as bitmap not vector.

Is there a way to do this?

Artboards Finder v0.1.4 not zooming

Hello Sergey,
Trying out the artboard finder script in illustrator 2023 (27.0.1), the script runs and is able to identify the artboard, change the number in the "artboard navigation" but does not actually zoom over to the artboard. I've tried changing the zoom ratio and that doesn't seem to do anything.

thank you for all of your work on these scripts!

Any chance of a Zoom and center sister script that only zooms and centers to the active artboard?

Illustrator has Fit artboard in window in the view menu, but it completely fills the screen at 100%. I really like how your Zoom and Center script has a ratio to reduce the zoom to a more sane size. But it only operates on everything visible. So if I have a lot of artwork (like a big icon grid), it just zooms to fit all the icons.

You would be my hero if you could put together a script that does the same as Zoom and Center, but for the active artboard.

And even more, if you're feeling ambitious, another that does the same for the current selection.

Really appreciate the consideration, and love your scripts.

Thanks,
Jay

download

unable to download the scripts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.