Highlighted

Is there any script to find out hidden textframes

New Here ,
Sep 01, 2020

Copy link to clipboard

Copied

HI everybody,i have four textFrames in the layer,the content is "24","32","15","48".But as show on the image,the TextFrame of "24" and "48" is hidden because of large font size.so i hope to pick out the textFrames which are hidden and change the font size for them.Is there any way to do this by script? ---Sorry for my poor english..微信图片_20200902143124.png

 

 

Bonjour,

Voilà une ébauche de script,

pour plus de détails, me contacter par mail.

elleere

Sélectionnez un texte captif "AREATEXT"

 

 

// JavaScript Document
// text essai voir.js
// De elleere Landry René
// Wed, 2 September 2020 16:01:11 GMT
// INIT --------
var pas = 5;
//--------------
var origObjet = selection[0];
var corps = origObjet.textRange.characterAttributes.size;

var duplicObjet, hauteur = -10;
    while (hauteur < 0)  {
       var VecText;
          duplicObjet = origObjet.duplicate(origObjet,ElementPlacement.PLACEAFTER);
          VecText = duplicObjet.createOutline();
          hauteur = VecText.height;
            if (hauteur < 0) {
              corps -= pas;
              origObjet.textRange.characterAttributes.size = corps;
            }
          VecText.remove();
    }

 

 

 

 

 

TOPICS
Scripting

Views

104

Likes

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

Is there any script to find out hidden textframes

New Here ,
Sep 01, 2020

Copy link to clipboard

Copied

HI everybody,i have four textFrames in the layer,the content is "24","32","15","48".But as show on the image,the TextFrame of "24" and "48" is hidden because of large font size.so i hope to pick out the textFrames which are hidden and change the font size for them.Is there any way to do this by script? ---Sorry for my poor english..微信图片_20200902143124.png

 

 

Bonjour,

Voilà une ébauche de script,

pour plus de détails, me contacter par mail.

elleere

Sélectionnez un texte captif "AREATEXT"

 

 

// JavaScript Document
// text essai voir.js
// De elleere Landry René
// Wed, 2 September 2020 16:01:11 GMT
// INIT --------
var pas = 5;
//--------------
var origObjet = selection[0];
var corps = origObjet.textRange.characterAttributes.size;

var duplicObjet, hauteur = -10;
    while (hauteur < 0)  {
       var VecText;
          duplicObjet = origObjet.duplicate(origObjet,ElementPlacement.PLACEAFTER);
          VecText = duplicObjet.createOutline();
          hauteur = VecText.height;
            if (hauteur < 0) {
              corps -= pas;
              origObjet.textRange.characterAttributes.size = corps;
            }
          VecText.remove();
    }

 

 

 

 

 

TOPICS
Scripting

Views

105

Likes

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
Sep 01, 2020 0
Adobe Community Professional ,
Sep 02, 2020

Copy link to clipboard

Copied

What you would need to search for is not "Hidden" text, but "Overset" text.

I'm not sure if there is a script available.

Likes

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
Reply
Loading...
Sep 02, 2020 0
New Here ,
Sep 02, 2020

Copy link to clipboard

Copied

Thanks,it's helpful and i find some answers.Mostly suggest to use  "JET_AutoFitVertical.jsx" but the download link is not available any more.

Likes

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
Reply
Loading...
Sep 02, 2020 0
Adobe Community Professional ,
Sep 02, 2020

Copy link to clipboard

Copied

Autofit won't help you a lot, because it adjusts the textframe, not the text. Also I'm not sure if it will work on irregularly shaped textframes.

 

But if you wish to try that, there is a script to adjust frame height on Kelsocartography.com

Likes

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
Reply
Loading...
Sep 02, 2020 0
Enthusiast ,
Sep 02, 2020

Copy link to clipboard

Copied

 

 

Bonjour,

Voilà une ébauche de script,

pour plus de détails, me contacter par mail.

elleere

Sélectionnez un texte captif "AREATEXT"

 

 

// JavaScript Document
// text essai voir.js
// De elleere Landry René
// Wed, 2 September 2020 16:01:11 GMT
// INIT --------
var pas = 5;
//--------------
var origObjet = selection[0];
var corps = origObjet.textRange.characterAttributes.size;

var duplicObjet, hauteur = -10;
    while (hauteur < 0)  {
       var VecText;
          duplicObjet = origObjet.duplicate(origObjet,ElementPlacement.PLACEAFTER);
          VecText = duplicObjet.createOutline();
          hauteur = VecText.height;
            if (hauteur < 0) {
              corps -= pas;
              origObjet.textRange.characterAttributes.size = corps;
            }
          VecText.remove();
    }

 

 

 

 

 

Likes

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
Reply
Loading...
Sep 02, 2020 1
New Here ,
Sep 02, 2020

Copy link to clipboard

Copied

Hi,Thanks for you answer, it's a good method.

Likes

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
Reply
Loading...
Sep 02, 2020 0