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

How to get the image zoom percentage with scipt?

Advocate ,
Oct 13, 2014 Oct 13, 2014

Copy link to clipboard

Copied

I want to get the true value of width, height value,

When the zoom percentage of X and Y at the same, The width and the high value just I need.

But when the zoom percentage of X and Y is different, I need the big scaling value, to make my width...

The following example:

W=90.366           H=(98.465/0.64)*0.88

So,I need to know the scaling value,and  whicha scaling value is bigger.

Thank you~~

scanl.jpg

TOPICS
Scripting

Views

597

Translate

Translate

Report

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

correct answers 1 Correct answer

Enthusiast , Oct 13, 2014 Oct 13, 2014

Hi,

May check with below code:

var myGr = app.activeDocument.allGraphics;

alert(myGr.length)

for(i=0; i<myGr.length; i++)

{

     alert("Image Name: " + myGr.itemLink.name + "\r" + "HorizontalScale: " + myGr.horizontalScale + "\r" + "verticalScale: " + myGr.verticalScale)

     

      }

Regards

Siraj

Votes

Translate

Translate
Enthusiast ,
Oct 13, 2014 Oct 13, 2014

Copy link to clipboard

Copied

Hi,

May check with below code:

var myGr = app.activeDocument.allGraphics;

alert(myGr.length)

for(i=0; i<myGr.length; i++)

{

     alert("Image Name: " + myGr.itemLink.name + "\r" + "HorizontalScale: " + myGr.horizontalScale + "\r" + "verticalScale: " + myGr.verticalScale)

     

      }

Regards

Siraj

Votes

Translate

Translate

Report

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
Advocate ,
Oct 13, 2014 Oct 13, 2014

Copy link to clipboard

Copied

BEGINNER_X thank you ~~

Votes

Translate

Translate

Report

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
Enthusiast ,
Oct 13, 2014 Oct 13, 2014

Copy link to clipboard

Copied

Hi Edny,

If anyone script really helpful for you, then click the correct answer.

This will motivate the developer, because they are spending their valuable timing for yours.

Regards

Siraj

Votes

Translate

Translate

Report

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
Advocate ,
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

LATEST

In fact, there is a correct answer options. To change the format will not to be found, only a favorite option

Votes

Translate

Translate

Report

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