0 Replies Latest reply on Mar 29, 2013 11:03 AM by jmw107

    Gradient Feather Settings CS3 JS

    jmw107 Level 1

      Hello:

       

      Hi -- Odd thing with the following snippet:

       

      for (var i = (app.activeDocument.rectangles.length - 1); i >= 0; i--) {

       

      var myrec = app.activeDocument.rectangles[i];

                if (myrec.label == "mygraphic") {

      myrec.transparencySettings.gradientFeatherSettings.angle = -90;

       

       

      }

      }

      The object appears to lose all gradients. However when I check the settings in InDesign, the change to -90 degrees has happened and all the other gradient settings have been preserved. But I have to redo the settings for the change to actually happen on the page.

       

      If i run this with an angle of 45, it works fine.

       

      Any idea what I might be doing wrong?

       

      Is this a problem with negative numbers? If so, Is there any workarounds?

       

      Any help would be greatly appreciated.

       

      thanks in advance