Skip to main content
Known Participant
July 7, 2021
質問

How to Get Under Ratio in PNG File in Script

  • July 7, 2021
  • 返信数 2.
  • 2986 ビュー

In this PNG File How to get Under Ratio Selection Any PNG File in Script ?

Is  that possible to get the Ratio in PNG File ?

このトピックへの返信は締め切られました。

返信数 2

Legend
July 7, 2021

You say you want "under ratio selection".

We have no clue what you mean by "under ratio selection".

We ask you what it means. 

You repeat you want "under ratio selection".

This does not answer our question. This does not help us. This wastes our time. This wastes your time. Just answer the question properly.

 

MXKS作成者
Known Participant
July 7, 2021

I want to under Ratio Selection, If i get under ratio selection, I will made Shape of Under Ratio Selection

Legend
July 7, 2021

You are just repeating "under ratio selection". "Under ratio selection". You can repeat 100 times, we still DO NOT UNDERSTAND WHAT YOU MEAN. Explain in detail. Use a different language if it helps.

c.pfaffenbichler
Community Expert
Community Expert
July 7, 2021

What do you mean by »Under Ratio Selection«? 

MXKS作成者
Known Participant
July 7, 2021

Yes, In a PNG File I want to Under Ratio Selection in Script..

Kukurykus
Legend
July 7, 2021

b = activeDocument.selection.bounds;
(b[2] - b[0]) / (b[3] - b[1])

 

I ran the script but does not work


For me it works. If not for you, then what is the result you're getting?

A result for me for selection of provided image is: 0.75133689839572