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

Help with scripting or actions, is something available or is it possible.

Explorer ,
Mar 10, 2022 Mar 10, 2022

Hey, just wondering if anyone can help me with a few action/scripts to solve some problems. Thank you very much in advance.

 

1. The Text-Block script (https://aiscripts.com/illustrator-text-block/) is extremely helpful but was wondering if it's possible to have a version with different parameters in? Control over the maximum height of each line? or is there a better way to solve the problem.

 

If I have a list of words in a text box is there a way to scale down the text pt size if it goes over a certain length to fit. The text doesn't need to be editable afterward if that helps.

2. Every day I'm saving two pdf versions of a file to a new folder within a set folder. One as standard and another with 'preserve illustrator capabilities turned off' with the naming format 'XXX_mockup.pdf' and 'XXX_send_mockup.pdf.

 

Is there any way to automate this with actions or scripts? Would it be possible to have an input for the XXX naming and the name of the new folder created?

 

Thanks so much!

TOPICS
Scripting
1.6K
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
Community Expert ,
Mar 13, 2022 Mar 13, 2022

Hi Russell, the whole point of the script is for all text frames to have the same width, height is adjusted accordingly.

 

can you post a sample showing what you need?

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
Explorer ,
Mar 14, 2022 Mar 14, 2022

Thank you for replying Carlos.

 

I likely confused the situation by comparing the TextBlock script. It's just that it's very helpful for other needs of mine.

 

I've tried to give an idea of what I'm looking to achieve using a list of random names.

Either in a text box or single lines of text, I need the size to change when a line of text 'name' goes over a certain width. The second column shows the names that originally don't fit, then only those scaled-down in the second column then text expanded in the third.

 

Hope this helps explain it in more detail? Thanks again.

 

 

Screenshot 2022-03-14 at 10.17.19.pngexpand image

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
Explorer ,
Mar 17, 2022 Mar 17, 2022

Just to update and say to ignore the second request as it's been answered elsewhere. 

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 ,
Mar 22, 2022 Mar 22, 2022

for resizing the overset text, check out the accepted answer on this post:

https://community.adobe.com/t5/illustrator-discussions/illustrator-javascript-for-quot-identify-over...

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
Explorer ,
Mar 22, 2022 Mar 22, 2022

Thanks again Dilliam, not sure this achieves what I'm looking for as it resizes all the text to a preset amount when I tried it out.

Is there a way to resize individual objects if they are over a certain width and ignore any that are under that size?

for example. Selected objects - if width is over 350mm, resize to 350mm?

 

Thanks in advance

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 ,
Mar 22, 2022 Mar 22, 2022

my apologies. i misread the issue. i thought you had overset text. i didn't see that the words were hyphenated and placed onto the next line. you might be able to get that script to work by turning off they hyphenation preference?

 

Can you share a sample file so i can see how your artwork is formatted? that'll give me the best shot at figuring out a solution.

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
Explorer ,
Mar 22, 2022 Mar 22, 2022

Thank you, I've crudely put together some examples that hopefully explain the need and then how I actually set the artboard/text boxes currently.

 

The main issue is manually resizing the lines of text that don't fit the width of the box (315mm), whether this can be achieved still as editable text or needs to be outlined first doesn't matter too much. I guess editable text makes the setup for the print process simpler though.

Thanks again, you've been really helpful with everything 

 

 

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
Explorer ,
Mar 22, 2022 Mar 22, 2022
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
Explorer ,
Mar 31, 2022 Mar 31, 2022

Hi Dilliam, 

Just wondering if there was any luck with this or is it a lost cause through illustrator?

Really appreciate you looking at it and your previous help.

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 ,
Mar 31, 2022 Mar 31, 2022

Sorry Russel. I had completely forgotten about this.

 

Can you re-save your example file as an .ai file or as a pdf compatible with AI 2021, please? I can't open your file in illustrator without losing a bunch of info because of version compatibility issues. 

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
Explorer ,
Mar 31, 2022 Mar 31, 2022
LATEST

Not to worry, thanks for taking the time to look at it.

 

I might be wrong but it didn't seem to like me uploading an .ai file so I've attached a link, hopefully this works.

https://www.dropbox.com/s/mom2ky5cu5st93k/Text%20resizing%20example.ai?dl=0

 

Thank you

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