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

How to select textFrames in current selection?

Explorer ,
Apr 13, 2011 Apr 13, 2011

Illustrator command selects all textFrames in active document, but how to select textFrames in current selection?

Thanks.

TOPICS
Scripting
830
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

correct answers 1 Correct answer

Guide , Apr 13, 2011 Apr 13, 2011

This should reduce your current selection to just those that are text frames…

#target illustrator var doc = app.activeDocument; var sel = doc.selection; for (var i = 0; i < sel.length; i++) {      if (sel.typename != 'TextFrame') {           sel.selected = false;      } }

Translate
Adobe
Guide ,
Apr 13, 2011 Apr 13, 2011

This should reduce your current selection to just those that are text frames…

#target illustrator var doc = app.activeDocument; var sel = doc.selection; for (var i = 0; i < sel.length; i++) {      if (sel.typename != 'TextFrame') {           sel.selected = false;      } }

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 ,
Apr 13, 2011 Apr 13, 2011
LATEST

Thanks, Muppet Mark. Works perfectly.

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