Copy link to clipboard
Copied
is it possible to retrieve size or bounds of objects with decimal values?
Thank you
Copy link to clipboard
Copied
If you are talking about getting the bounds of a layer and the unit is something other than pixels the answer is yes. A layer bounds in pixels will always be integer values.
Copy link to clipboard
Copied
Sorry I didn't clarify that I was searching for a method of getting pixel decimals. Do you think there is any hack to do it?
Copy link to clipboard
Copied
A normal artLayer is made up of whole pixels, so there is no way to get anything other than integers pixel values.
A shape layer or any other layer with a vector mask could have decimal pixel values if you only want the area defined by the mask.
Copy link to clipboard
Copied
A shape layer or any other layer with a vector mask could have decimal pixel values if you only want the area defined by the mask.
But if the paths are curved it might be difficult to determine the extreme values.
The points’ coordinates are easy enough to determine but determining the most high, left etc. expansion of a curve seems difficult to me.
The only work-around that I know is calculating a number of points along the path and evaluating those.
Copy link to clipboard
Copied
Yeah, this is extremly tedios
Find more inspiration, events, and resources on the new Adobe Community
Explore Now