creold / illustrator-scripts Goto Github PK
View Code? Open in Web Editor NEWSome powerfull JSX scripts for extending Adobe Illustrator
License: MIT License
Some powerfull JSX scripts for extending Adobe Illustrator
License: MIT License
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.
unable to download the scripts
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
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.
I searched alot ,there been some guide for making script bt i dont hv any id bout java
i just want to make a action or script
that by selecting a line or brush it sketch a path for example extend line 30 more point to left , then change direction of line to down (50 point down)
then 20 right .
some thing like that .
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!!
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?
ฦ/*
in AverageColors.jsx throws an error (AI2021)
Take a look at the video:
Not a huge deal, just letting you know about the bug. ๐
See this video:
When Preserve Layers
is disabled, the script just does nothing. Is this intended?
Really appreciate your work on all of the scripts available here.
Jay
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!
in illustrator sine you mirror a brush it direction dont change ,,,, I want an script that since I mirror a brush the direction will change automatically #
Select Points Type is not Working ??
Adobe: CC 2020 , OS: windows 10 2004
Thanks
click to enlarge image
)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
hello,
I am interested in your batch trace script.
https://github.com/creold/illustrator-scripts/blob/master/md/Item.md#batchtrace
Is it possible to save all the output as vectorized svg files.
Thank you
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:
(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:
(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
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
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
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:
{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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.