Highlighted

illustrator Spiral Shrinking/Growin text, scaling down/up on spiral path

New Here ,
Feb 24, 2014

Copy link to clipboard

Copied

First of all thanks in advance for anyone who may assist, or make this even possible...... (please contanct me ADAM    razo.ad1985     --->G.mail)

In dire need of expertise assistante. Years ago I DLded this script and got this working and older illustrator. NOW i have Illustrator CS6. I would love/like to TYpe text on a spiral path, then have the abitly for "user input(entering custom values)" as far as

Font Start Size/Pt = 80

Font End Size/Pt = 12

Just a concept......(maybe someone can do this)

desired spiral script.jpg

Then have illustrator(script) perform action and make my spiral big(80pt) at beggning of text and end at small(12pt) there for looking as FONT/TEXT Gradually shrinks in size from beggining(80pt) unitl end of font/text(12pt)

   similar to this(end result after srcipt ran and values entered)

spiralText Concept.jpg

I know there is an older script out there..... but if someone can perhaps undate this and modernize it with prompt for user input/customization interaction

         ChangeSizesOfTextSelection.js  ----->    http://forums.adobe.com/thread/447657

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

Hi Pixxxel, remember the new forum format broke the loop indexes

 

here's the fixed version

// CharSizeChangeFromFirst2LastInProportion.jsx

// http://forums.adobe.com/thread/1414597?tstart=0

// select a text frame or pathtext before running this script 

// test this script at first with only a few characters!

// The more letters, the longer it takes

// If the screen seems to be frozen - please wait for a while

// regards pixxxelschubser  25/Febr./2014

var aDoc = app.activeDocument;

if (aDoc.selection.length > 0) {

    if (aDoc.selection.length < 2 && aDoc.selection[0].typename == "TextFrame") {

        var aTFrame = aDoc.selection[0];

        var theChars = aTFrame.characters;

        var charLength = theChars.length;

        var startSize = prompt("size of first character", 25,"start size");

        var endSize = prompt("size of last character", 5,"end size");

        var step = (startSize-endSize)/(charLength-1);

        for (i = 0; i < charLength; i++) {

            theChars[i].size = (startSize - i*step).toFixed (2);

            redraw();

            }

        } else {alert("Please select only one text frame")}

    } else {alert("No selection")}
TOPICS
Scripting

Views

5.4K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

illustrator Spiral Shrinking/Growin text, scaling down/up on spiral path

New Here ,
Feb 24, 2014

Copy link to clipboard

Copied

First of all thanks in advance for anyone who may assist, or make this even possible...... (please contanct me ADAM    razo.ad1985     --->G.mail)

In dire need of expertise assistante. Years ago I DLded this script and got this working and older illustrator. NOW i have Illustrator CS6. I would love/like to TYpe text on a spiral path, then have the abitly for "user input(entering custom values)" as far as

Font Start Size/Pt = 80

Font End Size/Pt = 12

Just a concept......(maybe someone can do this)

desired spiral script.jpg

Then have illustrator(script) perform action and make my spiral big(80pt) at beggning of text and end at small(12pt) there for looking as FONT/TEXT Gradually shrinks in size from beggining(80pt) unitl end of font/text(12pt)

   similar to this(end result after srcipt ran and values entered)

spiralText Concept.jpg

I know there is an older script out there..... but if someone can perhaps undate this and modernize it with prompt for user input/customization interaction

         ChangeSizesOfTextSelection.js  ----->    http://forums.adobe.com/thread/447657

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

Hi Pixxxel, remember the new forum format broke the loop indexes

 

here's the fixed version

// CharSizeChangeFromFirst2LastInProportion.jsx

// http://forums.adobe.com/thread/1414597?tstart=0

// select a text frame or pathtext before running this script 

// test this script at first with only a few characters!

// The more letters, the longer it takes

// If the screen seems to be frozen - please wait for a while

// regards pixxxelschubser  25/Febr./2014

var aDoc = app.activeDocument;

if (aDoc.selection.length > 0) {

    if (aDoc.selection.length < 2 && aDoc.selection[0].typename == "TextFrame") {

        var aTFrame = aDoc.selection[0];

        var theChars = aTFrame.characters;

        var charLength = theChars.length;

        var startSize = prompt("size of first character", 25,"start size");

        var endSize = prompt("size of last character", 5,"end size");

        var step = (startSize-endSize)/(charLength-1);

        for (i = 0; i < charLength; i++) {

            theChars[i].size = (startSize - i*step).toFixed (2);

            redraw();

            }

        } else {alert("Please select only one text frame")}

    } else {alert("No selection")}
TOPICS
Scripting

Views

5.4K

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Feb 24, 2014 0
Most Valuable Participant ,
Feb 25, 2014

Copy link to clipboard

Copied

Hi razo.ad1985,

Your second picture shows a distortion, right?

But no matter. Try this:


// CharSizeChangeFromFirst2LastInProportion.jsx

// http://forums.adobe.com/thread/1414597?tstart=0

// select a text frame or pathtext before running this script

// test this script at first with only a few characters!

// The more letters, the longer it takes

// If the screen seems to be frozen - please wait for a while

// regards pixxxelschubser  25/Febr./2014

var aDoc = app.activeDocument;

if (aDoc.selection.length > 0) {

    if (aDoc.selection.length < 2 && aDoc.selection[0].typename == "TextFrame") {

        var aTFrame = aDoc.selection[0];

        var theChars = aTFrame.characters;

        var charLength = theChars.length;

        var startSize = prompt("size of first character", 25,"start size");

        var endSize = prompt("size of last character", 5,"end size");

        var step = (startSize-endSize)/(charLength-1);

        for (i = 0; i < charLength; i++) {

            theChars.size = (startSize - i*step).toFixed (2);

            redraw();

            }

        } else {alert("Please select only one text frame")}

    } else {alert("No selection")}

Have fun

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 25, 2014 0
New Here ,
Feb 25, 2014

Copy link to clipboard

Copied

WOW thnaks for the quick reply man, appreciate it.....

but Not 100% certain if this depicts destortion, as i borrowed second image from online as looked similar to what i am trying to achieve....

but here is another exaple of effect i am trying to get.... sorta effect of text falling down a spiral, and smaller as it gets deeper down(hopefully makes sense)........ I WILL DEF give yours a try and see if this works well for me..... thanks so much man for taking the time.

spiral text.jpg

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 25, 2014 0
Adobe Community Professional ,
Feb 25, 2014

Copy link to clipboard

Copied

Here's what it does.

Screen Shot 2014-02-25 at 10.07.12 PM.png

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 25, 2014 1
New Here ,
Feb 26, 2014

Copy link to clipboard

Copied

@pixxxel schubse

Yes....... tested this and so far worked marvels for the effect i am trying to achieve. As you mentioned the screen does at times freeze up a bit, then flahses black but despite that does the job. Thank you, thank you thank you. One question for you, on another note, is it possibly to edit and already created spiral.....for exaple if i create a spiral>apply script> once processed see that maybe the spiral can be a bit tigher >can i edit the values originally set(radius, decay segments) ...... sorry for the 21 questions man.. dont want to come off as Barbara Walters on investigative report.... but im a bit amatuer to Illustrator, photoshop i think i got down.....

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2014 0
Adobe Community Professional ,
Feb 26, 2014

Copy link to clipboard

Copied

Just select the text and rerun the script adjusting the values. I did it several times last night while fiddling with the script. Option clicking with the Spiral tool will allow you to change the parameters but after you create the path it is just a path and not a configurable primative.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Feb 26, 2014 0
New Here ,
Oct 09, 2014

Copy link to clipboard

Copied

Great script. Works like a wonder. Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Oct 09, 2014 0
New Here ,
Jun 19, 2019

Copy link to clipboard

Copied

Can someone please help update this script to work with Illustrator 2017/CC and upload ??? Thanks much to that kind person or people.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 19, 2019 0
Most Valuable Participant ,
Jun 19, 2019

Copy link to clipboard

Copied

What kind of problems do you have?

The script works in CC2017+ as well.

Have fun

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 19, 2019 0
New Here ,
Mar 23, 2020

Copy link to clipboard

Copied

Hello, can u help me please? The script wont work in the last illustrator version... 

Do u have some solution o any other script like this??

Thank u

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2020 0
Most Valuable Participant ,
Mar 23, 2020

Copy link to clipboard

Copied

Hi @girolamoa72754650,

the script assumes the following:

  • text as areatext  or
  • text as pathtext  or
  • text as pointtext  and finally

 

  • the text frame selected with the Selection Tool (black arrow)

 

Then the script also works as well (and as expected) in Illustrator 24 (CC2020)

CharSizeChangeFromFirst2LastInProportion.png

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2020 0
Adobe Community Professional ,
Mar 23, 2020

Copy link to clipboard

Copied

Hi Pixxxel, remember the new forum format broke the loop indexes

 

here's the fixed version

// CharSizeChangeFromFirst2LastInProportion.jsx

// http://forums.adobe.com/thread/1414597?tstart=0

// select a text frame or pathtext before running this script 

// test this script at first with only a few characters!

// The more letters, the longer it takes

// If the screen seems to be frozen - please wait for a while

// regards pixxxelschubser  25/Febr./2014

var aDoc = app.activeDocument;

if (aDoc.selection.length > 0) {

    if (aDoc.selection.length < 2 && aDoc.selection[0].typename == "TextFrame") {

        var aTFrame = aDoc.selection[0];

        var theChars = aTFrame.characters;

        var charLength = theChars.length;

        var startSize = prompt("size of first character", 25,"start size");

        var endSize = prompt("size of last character", 5,"end size");

        var step = (startSize-endSize)/(charLength-1);

        for (i = 0; i < charLength; i++) {

            theChars[i].size = (startSize - i*step).toFixed (2);

            redraw();

            }

        } else {alert("Please select only one text frame")}

    } else {alert("No selection")}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 23, 2020 1
Resources