I don’t think there’s a way to see different measurement units simultaneously, but an easier way to change them is by right clicking on the ruler and choosing from the contextual menu that appears.
-phil
I concur to the unlikelihood of simultaneous readouts.
But if You donĀt need the measurements to live-update it should probably be fairly easy to create a Script that displays both measurements on invocation.
The right click on ruler is easy enough. Good to know!
Thanks
No one asked for it, yet here it is:
// shows width and height of a selction in pixels and mm;
#target photoshop;
if (app.documents.length == 0) {
alert ("No open document")}
else {
var myDocument = app.activeDocument
//function hasSelection(doc) by xbytor;
var res = false;
var as = myDocument.activeHistoryState;
myDocument.selection.deselect();
if (as != myDocument.activeHistoryState) {
res = true;
myDocument.activeHistoryState = as;
};
if (res != true) {
alert ("No selection active")}
else {
var theSelection = myDocument.selection;
var originalUnits = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;
var theBounds = theSelection.bounds;
var theWidth = (theBounds[2] – theBounds[0]);
var theHeight = (theBounds[3] – theBounds[1]);
preferences.rulerUnits = Units.MM;
theBounds = theSelection.bounds;
var theMmWidth = round ((theBounds[2] – theBounds[0]), 1);
var theMmHeight = round ((theBounds[3] – theBounds[1]), 1);
alert ("The Selection measures \r" + theWidth+ " by " + theHeight + "\r" + theMmWidth + " mm by " + theMmHeight + " mm")
Preferences.rulerUnits = originalUnits
}
}
//round the values, thanks to bob stucky;
function round ( number, precision ) {
var number = parseFloat( number );
var precision = parseInt( precision );
if ( precision == 0 ) {
return Math.round( number );
}
return Math.round( number * Math.pow( 10, precision ) ) / Math.pow( 10, precision );
}
One could assign it a shortcut in Edit Ā Keyboard Shortcuts.
Case-sensitivity can be such a Ā
source of errors when one is sloppy. Ā»Preferences.rulerUnits = originalUnitsĀ« in line 30 should be Ā»preferences.rulerUnits = originalUnitsĀ«; sorry.
Does that work better?