1 Reply Latest reply: Mar 31, 2012 12:01 PM by Muppet Mark RSS

    i am in need of ai script for arcing text

    Sawlay Community Member

      i am in need of ai script for arcing text

        • 1. Re: i am in need of ai script for arcing text
          Muppet Mark Community Member

          A little vague aren't we… Is this the kind of arcing you mean? Text along a curve or do you mean distorting into an arch like some plug-in can?

           

          #target illustrator
          
          var doc = app.activeDocument;
          
          doc.defaultFilled = false, doc.defaultStroked = true;
          
          var textPath = doc.pathItems.ellipse( 0, 0, doc.width, doc.height );
          
          textPath.pathPoints[3].selected = PathPointSelection.ANCHORPOINT;
          
          app.cut();
          
          doc.selection = null;
          
          app.redraw();
          
          var tp = doc.textFrames.pathText( doc.pathItems[0], 0, 0, TextOrientation.HORIZONTAL );
          
          tp.textRange.paragraphAttributes.justification = Justification.CENTER;
          
          tp.textRange.characterAttributes.size = 60;
          
          tp.contents = 'I am in need of ai script…';
          
          var tpd = tp.duplicate();
          
          tpd.translate( 0, -150 );
          
          tpd.textRange.characterAttributes.size = 90;
          
          tpd.contents = '…for arcing text?';