Hi guys...the title says it all, based on the discussion on this thread
http://forums.adobe.com/message/4382760#4382760
get the script from here:
questions/comments? let me know
CarlosCanto
WOWWWWWWW!!!!
Works like charm. Thanks God there are people like you here
The best post I've seen on these forums!
Saved the script with the name CarlosCanto_ScaleStrokesOnly![]()
Great job It is perfect already but If I'm allowed to make one suggestion it would be to make the Preview checked by default. I know it is following the Illustrator convention but you can make it better ![]()
Hi Jacob, either you can download it, (just replace the txt extension with jsx in the Save as...Dialog), or you can copy and paste it into your favorite text editor and save it as jsx (or js for 10?).
how far back? mmmmh...not sure, I don't have 10, or CS to test. I started using AI with CS3 and started scripting with CS4. I only tested it with CS4 and CS5.
Give it a try and let us know your errors if any, and I'll try to figure out a version that works with 10.
Jacob,
.jsx just associates it with ExtendScript Toolkit. It doesn't really have anything to do with the script itself.
To try a script to see if it will run in AI10, try changing the extension to .js.
It's still quite possible that a script may use functionality of the AI Javascript object model that didn't exist when AI10 shipped, or that has changed since. But the extension on the file does not necessarily mean there's anything in the script that AI 10 can't do. Note that when you download Carlos's script, its extension is .txt. That's all a Javascript is; a text file.
JET
Please forgive my lack of basic knowledge, but I have no clue how to do that in Windows XP
Wait, you don't work for our Sales Dept, do you? K, no, I'm just kidding.
Right Click > Rename -OR- F2 with the file selected. When you do it, you'll be warned that the file may become "unusable". Just ignore that.
(You may have to first unhide file extensions for known filetypes in your Windows Exporer folder options.)
Changing .JSX to .JS is just like changing a text file from .TXT to .HTML so that it's file association is changed. That's all the extension does - associate the file with a certain program(s). It has no effect on the file's contents.
For fun, try changing an Illustrtaor .AI file's extension to .PDF, then open it up.
Neither way gives access to the extension: all that happens either way is that I get a file ending in .js.txt, and it still appears as a text file.
It's entirely possible to name a file:
Aunt Illy.pdf.txt
In the above case, it's still a text file. ".PDF" is simply in the name (not extension) and is ignored. Only after the last period in the file's total name is the actual extension designated.
You must verify you have 'Show File Extensions' turned on.
Again, per the above case - without it, you don't see ".txt". So a file called: "Aunt Illy.pdf.txt" will look like "Aunt Illy.pdf" to you.
Jongware, makes a great point. I recommend always keep file extensions showing. It's worth it.
For the record, you can paste the textual contents of Carlos's [AKA Cronos of Tartarus] script into notepad and just save it as *.js -OR- *.jsx. It is just a text file afterall.
(use the "Raw Paste Data" section at the bottom of the OP's linked page)
But anyway, what this really adds is the real-time slider, and an easy percentage input, right? You just click in the Weight field and add *1.5 to scale to 150% if wanted. So "2pt*1.5" becomes 3pt.
Wade_Zimmerman wrote:
Well the script works great and I see no reason why Adobe should not pick this one up and incorporate it into the stroke panel.
Thank you and well done.
Cheers!
Hi Wade, you're welcome...let's see, if they didn't add it from the get go, probably they didn't think it was useful, granted, no fault there...but really, they have a multitude of unattended bug reports and feature requests ahead of this one...but in all fairness, it should be pretty easy to incorporate to the Scale Dialog, if they wanted to...the question is, how would they know something like this is needed?
BTW it works in CS 6 and even takes on the CS interface.
hey!! post a screen shot please...
thanks for commenting
Mathias17 wrote:
But anyway, what this really adds is the real-time slider, and an easy percentage input, right? You just click in the Weight field and add *1.5 to scale to 150% if wanted. So "2pt*1.5" becomes 3pt.
Hi Mathias, not really...well, for a Selection of 1, yes, or for multiple selections that will end with a uniform line weight. But the script works best with multiple selections with multiple line weights, all strokes will scale proportionally.
Thank you very much, Mathias, and Pierre.
(You may have to first unhide file extensions for known filetypes in your Windows Exporer folder options.)
Indeed. I finally found it in the Control Panel, after overlooking the option in the Tools dropdown.
Unfortunately, Carlos:
And Theunis,
Jacob, you must be a trusting soul,
Indeed.
Hi Mathias, not really...well, for a Selection of 1, yes, or for multiple selections that will end with a uniform line weight. But the script works best with multiple selections with multiple line weights, all strokes will scale proportionally.
Oh! Ok, yeah great!
I've failed to say thanks for this, so far. So, thanks for makin' it!
Hi Carlos, I have tried to modify your script to use a "palette" UI. It now looks like below:
I don't know it's useful or not. Anyway, here is the link: http://pastebin.com/3jZ0PjKk
I don't know it's useful or not.
Moluapple,
Very useful indeed! As I mentioned in the thread that gave rise to this, a palette version would be much more elegant; and it is. With your palette version, the flickering from the redraw is gone, so the slider works like a slider should. You can change the selection without dismissing the window.
Moreover, though, I now (at long last) have an example of a functioning AI javascript palette--something I've been looking for ever since first dinking around with AI javascript dialogs.
(I've run this in CS3, by the way, so it works at least that far back.)
Thanks.
JET
Moluapple, the significance of your version is the actual palette functionality, I would call it the Holy Grail of Illustrator Scripting. It opens a door for whole lot of new scripts going forward.
I found out a few months ago quite by accident while researching ActionScript in Illustrator and I have been trying to post a much anticipated "special" script to give it a proper announcement...I'm very close to finish it, stay tuned.
great find, how did you come up with it? just curious
North America
Europe, Middle East and Africa
Asia Pacific