

If(!descLayer.hasKey(stringIDToTypeID( 'textKey' ))) continue R.putIndex( charIDToTypeID( 'Lyr ' ), c ) Var c = executeActionGet(p).getInteger(charIDToTypeID('NmbL'))+1, P.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ) Name it whatever you want, such as "Detect Fonts.jsx" var p = new ActionReference() If using Notepad, save the file WITH the double quotes.Save this script as a new file in your Photoshop > Presets > Scripts folder. You can bind the script to a hotkey too, as described below.Ĭopy the code below and save it in a file named "getLayerSize.jsx". Here's another answer that is slightly related:Įspecially the bottom part of the answer that lists methods to exporting layer styles as css, which includes width and height, of course.įor anyone who wants to grab width/height in a single click and copy it, I created a script (based on this answer). This works even if the object is outside the document area. Use Free transform Ctrl+ T and when free transform is active, go check the Info panel F8 as shown above. You can make a selection of the layer for example by ctrl or cmd clicking the layer thumbnail and then looking at the info panel F8, it will show you the dimensions of the selection.įrom the upper right corner where you can see the arrow pointing down, you can find the options and within there you can set the ruler unit to pixels or what ever you want it to show. ( On windows just think of the Cmd as Ctrl )

You then can press Esc to close the window. The width and height in the window are the clipboard image dimensions = your objects/layers dimensions. When I run this action I'm left with New document window.
