16 Replies Latest reply on Nov 19, 2014 7:25 AM by CarlosCanto

    changing or scaling gradient length in javascript

    frax_ Level 1


      I am trying to scale or change the length of a gradient fill. I managed to rotate it using the trick with .rotate without changing the shape, but I can't get the equivalent working with changing the length of the gradient - it just doesn't do anything!

      I am on Illustrator 18 using JavaScript.

      pathItem.fillColor.length doesn't work, and neither does .resize!