I Accidentally Vibe-Coded A Script For Adobe Illustrator … And It Even Worked

Illustrator.World
30 followers
#AdobeIllustrator #IllustratorTutorial #VectorArt #IllustratorTips #GraphicDesign #LearnIllustrator #VectorIllustration #LogoDesign #DigitalArt #IllustratorTricks
If you haven't turned off the Google AI summary,
then probably you've stumbled across
the actual results of it,
and sometimes they are less than useful, but sometimes they can
give you a nice result.
So let's start in Illustrator.
What I wanted to do is arrange these numbers along this path,
but I don't want them rotated.
So let's do that.
I'm just going to use Objects on Path.
Click here.
And you see the numbers are rotated.
To rotate them back I have to expand this. So let's go to
expand like this and then let's ungroup
this and I'm going to delete the path.
So now we have all these numbers.
Now it would be nice if you could just select them all.
And then enter zero here, but you see it is already zero,
but if you select the single numbers
then it's not zero.
So I would have to select every one of them and set this to zero, which
is quite a lot of work. I don't want to do that. And I thought that
there might be a script for that already,
but I don't know where to find it. So
Let's go to Google and enter the search term.
So when searching for scripts,
I always start with Adobe Illustrator script
and then describe what I want. So I want to set the rotation to zero.
Let's just do that.
And you see up here in the top, Google actually gives scripts.
So it also describes what this script does
so you can see if that makes sense.
In some results it also tells you to be careful with the script
and that is something that you actually should be.
So now we can copy this and then go to text edit.
Now on Windows use Notepad.
What is important?
Let's go to the settings here.
This needs to be set to plain text,
because we cannot have formatting in it.
And then just paste this in,
and then save this, and I'm going to
name this like this, and just save it.
So the next thing I need to also name this
JSX like this, and then let's try it out. So select all of the numbers,
And then run the script.
I haven't installed it, because I rarely do that with scripts,
so let's go to file, scripts, other script,
and then just go here, launch it, and you see
we've got them set to zero.
Now I'm going to select one of them and you see also the bounding
box is rotated back. Now I have already tried
that and got a different script, and that other script
Did not.
Set the bounding box correctly.
So if that is the case, what you still need to do is,
you know, select them all and go
to transform and reset the bounding boxes.
So that's how you can incorporate Google AI if you need a script.
But if your scripts get more complicated,
then probably it will be difficult for Google
as well.
But this one was a simple one.
