-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Runs but makes no changes #1
Comments
Hi Rachella, I also run AI CC 2014 on mac. The script will rename the currently selected layers or layers to which belong selected objects in the active document, did you have a selection before starting the script? I have just added an error message if no layer is selected. f26d8ed |
Thanks for the response seblavoie! New version pings as expected if no layer is selected, but I still can't seem to replace layer name as expected. In this example I'm trying to change the layer named "pink star" to "test replace". OMG I know you're not tech support...but I'm feeling dense here and could use a push in the right direction. Best, RB |
That is very strange… Do you have the Adobe Extendscript Toolkit? It comes with the CC subscription. If you do, you could try to open the file |
Thanks again for the script and the response. ::rolls up sleeves, sets in for the task of renaming layers the old fashioned way:: |
Alright then, I wish you good luck! 👌 |
Does this script work with CS5 ? I have a few suggestions, if so. |
It hasn't been tested in cs5. I've only used it in CC and CC 2014. I don't have cs5 so that will be hard for me to make it work… |
I could test for you, couldn't you reference the Illustrator CS5 Scripting guide and compare ? :) |
The layer object in cs5 guide (http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/pdf/illustrator/scripting/illustrator_scripting_guide_cs5.pdf) isn't as well described but I am pretty sure it has a |
When I select a layer, any layer for that matter, I get the error "Select the layer you would like to be renamed". It doesn't appear as though the script doesn't work, it's a matter of having the script understand Illustrator CS5 layers, that is my guess. |
Okay, so the problem comes from
for
|
Same error :( |
Could you run it through ExtendScript Toolkit? It would flag the errors. |
The only error I get after running the script in ExtendScript Toolkit is; illustrator-18 is undefined, although there is no line mentioned. |
I always had the target on Adobe Illustrator CS5. There are no debugging errors, except for the error I mentioned. |
Okay that was my bad, Illustrator-18 was hardcoded as the target. You might want to delete line 2 or pull the latest version. I have just corrected it. |
I downloaded the latest version; same problem; same error. |
Well… This will be hard for me to continue the follow-up without CS5. I think we'll have to consider the script not compatible with CS5 and lower unless you can fix the bug from your side. |
Can I share your code so I can hopefully get it working with CS5 ? |
Sure, that’s why it’s open-sourced ;) |
SheepDomination you will be my hero if you get it working! Sebastien...you will continue to be awesome too! *Rachel Borengasser */ Chief Operating Officer •••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••• LUMINARE On Mon, Apr 20, 2015 at 8:40 PM, Sébastien Lavoie [email protected]
|
I have good news, thanks to some help. This code will rename the layers in illustrator, with the ability to add prefix and suffix to the layer names.
I was informed that seblavoie script works on renaming artboards ? That wasn't my goal, if that is even correct, hopefully seblavoie can verify this ? Either way this script will do what we all want. |
Whoa! Thanks! I'll test and let y'all know how it works for me. Sent from a mobile. Thursday, May 14, 2015, 10:30 PM -0500 from SheepDomination [email protected]:
function goTime(){
|
That is indeed a very cool script. More refined than my solution. Although it does not really act the same way. I really needed in my case to replace stuff in layer names. Usually |
Seblavoie - If you can expand your script with this script, you'll have a more flexible and powerful script :) |
Hi! Sevlavoie's solution still works! I tested no.ai 24.2.1. but I couldn't change the original layer suffix number. |
Hi! This script worked like a dream in Illustrator, but when I import the .ai file into After Effects, it shows the old layer names. :( Any thoughts? |
I am not really using this script anymore and don't have much time developing it, sorry. But if someone wants to take a jab at fixing the issue, I will gladly test and merge a pull request :) |
Hi seblavoie! Thanks so much for the much needed script.
I'm running AI CC 2014 on a mac and the script runs (1st pop up, 2nd pop up) but doesn't change the layer name as expected—it doesn't seem to do anything actually.
Any thoughts? Forgive me if I've not been clear enough.
Best, RB
The text was updated successfully, but these errors were encountered: