2 Replies Latest reply on Sep 17, 2010 6:25 PM by Yuliaart

    Color value in InDesign CS5 js

    Yuliaart Level 1

      This piece used to work at least in CS4, now it doesn't work in both CS4 and CS5. I need to return color values of a fillColor of a rectangle, did something changed?

       

      var myCMYK = myFrame.fillColor;
      myCMYK = myCMYK.colorValue;
      myCayn = String (myCMYK[0]);
      myMagenta = String (myCMYK[1]);
      myBlack = String (myCMYK[3]);

      alert (myCayn);

       

      Now script just ignores it - jumps over it like nothing there even in the script where it used to work.

       

      Thank you for your  help.

      Yulia