3 Replies Latest reply on Feb 2, 2017 4:43 PM by Kukurykus

    Need help diagnosing one line of code

    DevilsChariot Level 1

      I and using javascript


      I want to set a rectangular selection.


      both of these throw an error and i can't figure why;






      var coverRegion = [3111.62,936.63,5300.89,4025]



      if I change this to crop it works though. According to the javascript reference guide it the same kind of array of coordinates (left, top, right bottom)




      I have tested this as just a single line of code in it's own document and still get "Error 1220: Illegal Argument"


      I'm pulling my hair out here.