Skip navigation
Currently Being Moderated

doc.pathItems.add and  line.strokePath inconsistent with document resolution

Oct 31, 2011 5:05 PM

Applicaton: CS5 and javascript


The doc.pathItems.add() and  line.strokePath() scripting commands have inconsistent results with document resolution setting. 


In a for loop I create a pathitem line, stroke it, then delete the path.  I may do this several hundred times in the loop. 


It works fine when the document resolution is low like 72.   As the resolution increases, not all lines are painted within the document.

I've observed the line actually painted within the photoshop window outside of the image. At 300 resolution, only about 1/4 of the lines

actually get painted on the document. I've used the waitforredraw (or something like that) function from the adobe js scripting reference

document but it had no affect on the problem.


Any help is appreciated.






More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points