Skip to main content
May 3, 2014
Answered

Control horizontal scaling of letters in VBScript

  • May 3, 2014
  • 1 reply
  • 391 views

Hi,

I've got a problem which almost drives me mad: I want to control the horizontal scaling of characters in vbscript. I know the button on the gui, but I can't find out the corresponding function in vbscript.

So does anyone here know the vbs command for this function? http://s7.directupload.net/images/140503/wfez5hrh.jpg

First I thougt, it would be ".desiredGlyphScaling" But changing this value has no effect. Also if i request the value of a handdrawn object with different scaling over a script, it still shows me 100.

Thanks for help!

This topic has been closed for replies.
Correct answer pixxxelschubser

Hello friedrich_nietzsche,

sorry, but I'm not familiar with VBS.

But perhaps this Javascript is helpful a little bit for you:

if(app.activeDocument.stories.length && app.activeDocument.stories[0].characters.length) {

alert (app.activeDocument.stories[0].characters[0].horizontalScale);}

This will show you the horizontal scaling of the first character in the first story of your document.

I'm sure, you can translate this by yourself in VBS.

Have fun

1 reply

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
May 3, 2014

Hello friedrich_nietzsche,

sorry, but I'm not familiar with VBS.

But perhaps this Javascript is helpful a little bit for you:

if(app.activeDocument.stories.length && app.activeDocument.stories[0].characters.length) {

alert (app.activeDocument.stories[0].characters[0].horizontalScale);}

This will show you the horizontal scaling of the first character in the first story of your document.

I'm sure, you can translate this by yourself in VBS.

Have fun

May 3, 2014

Oh my god, how could I overlook this? Yes, this was the correct solution, thanks for your help.