Extracting the scale (as a percentage) of a selected Smart Object
Hi all,
I've just discovered a handy little function in Photoshop I never knew existed ... 'Convert to Layers'. I'm pretty sure this wasn't always available, but now it is, want to make a simple script to convert the selected Smart Object back into layers again. I need to work out a way of extracting the scale (as a percentage) of the Smart Object before I can go any further, as this information can then be applied to the converted layers, to ensure the dimensions are the same as the original Smart Object. I'm currently working with applescript, but am happy to work with javascript too. The example below extracts some layer details but not the ones I want in the attached screen, which is exactly what I'm struggling with at the moment...
tell application "Adobe Photoshop 2023"
tell current document
return properties of current layer
end tell
end tell

Any help would be appreciated!
Cheers,
Sam
