scripting illustrator

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tussom
    New Member
    • Mar 2007
    • 16

    #1

    scripting illustrator

    Hello
    is anyone familiar with using javascript with adobe illustrator

    i can't seem to find a way to place an image file into an Adobe illustrator file from within the javascript code

    i would appreciate any help in this area

    thank you
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Is this JavaScript similar to the JavaScript used in browsers or is it a subset?

    Post your code.

    Comment

    • tussom
      New Member
      • Mar 2007
      • 16

      #3
      I don't know here's some of the code coz it's too long

      [CODE=javascript]var thisDoc = app.activeDocum ent;
      var artLayer = thisDoc.layers. add()
      app.defaultStro ked = false;
      app.defaultFill ed = true;

      var blueRect = artLayer.pathIt ems.rectangle( 595, 263.741, 153.03, 339.825);
      var darkBlueRect = artLayer.pathIt ems.rectangle( 595, 372.831, 43.94, 340.156);
      var border = artLayer.pathIt ems.rectangle( 595, 190, 226.771, 340.156);
      var rect1 = artLayer.pathIt ems.rectangle( 577, 215, 201.5, 1);
      var ellipse1 = artLayer.pathIt ems.ellipse( 579.5, 211, 6, 6, false, true );
      var ellipse2 = artLayer.pathIt ems.ellipse( 568, 265, 6, 6, false, true );
      var ellipse3 = artLayer.pathIt ems.ellipse( 513, 265, 6, 6, false, true );[/CODE]
      Last edited by acoder; Oct 22 '07, 07:27 AM. Reason: Added code tags

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Have you checked the documentation?

        Comment

        • tussom
          New Member
          • Mar 2007
          • 16

          #5
          yes i checked them but i couldn't find the line of code that directly inserts the image.

          Comment

          Working...