JavaScript Scripting Reference
MeasurementScale
The measurement scale for the document. See
Document
Note:
The MeasurementScale feature is available in the Extended Version only.
Because the
name,
example:
activeDocument.measurementScale.pixelLength = 25
The following code incorrectly uses an upper case M:
activeDocument.MeasurementScale.pixelLength = 25
Properties
Property
pixelLength
logicalLength
logicalUnits
object.)
MeasurementScale
, rather than the class name,
measurementScale
Value Type
number (long)
number (double)
string
Adobe Photoshop CS3
measurementScale
class is a property of the
What it is
Read-write. The length in pixels this scale equates to.
Read-write. The logical length this scale equates to.
Read-write. The logical units for this scale.
JavaScript Object Reference
(in the Properties table for the
object, you use the property
Document
, in your code. For
MeasurementScale
133