Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Get width/height or layer bounds with decimals values

New Here ,
Aug 18, 2013 Aug 18, 2013

is it possible to retrieve size or bounds of objects with decimal values?

Thank you

TOPICS
Actions and scripting
995
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
Aug 18, 2013 Aug 18, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 18, 2013 Aug 18, 2013

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Aug 18, 2013 Aug 18, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 20, 2013 Aug 20, 2013

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 20, 2013 Aug 20, 2013
LATEST

Yeah, this is extremly tedios

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines