Skip to main content
Participant
July 20, 2012
Question

How to select with ruler mm

  • July 20, 2012
  • 1 reply
  • 650 views

#target photoshop

app.preferences.rulerUnits = Units.MM;

var w =  activeDocument.width.value;

var h =  activeDocument.height.value;

selReg = [[0,0 ],[0 ,h ],[w ,h ],[w,0 ]];

activeDocument.selection.select(selReg);

I would like to make a selection with ruler mm.

But I can't.

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
July 21, 2012

You may have to calculate the pixel values for your mm-values (taking the image’s resolution into account).