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

How in the script to refer to the symbol set present in the document?

Engaged ,
Apr 16, 2023 Apr 16, 2023

Hi all.

 

How in the script to refer to the symbol set present in the document?

 

Symbol Set.pngexpand image

 Hhere can be several such sets in a document, is there an option not to use the function "getByName"?

 
 
 
 
 
TOPICS
Scripting
467
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 ,
Apr 16, 2023 Apr 16, 2023

Hi @AnyON, could you please explain what you want the script to do, and post an example file?

 

It looks like you are talking about the result of using the Symbol Sprayer tool. The scripting API currently doesn't provide access to this object except via the symbol items or by expanding it into individual symbols or even further into normal path items. It is likely that what you want isn't as straightforward as we would like, but we won't know until you show us what you want to do via script. 

- Mark

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
Engaged ,
Apr 16, 2023 Apr 16, 2023
LATEST

1.Select this Symbol set in the layer
2. Release this Symbol set into layers (sequence)

 

the code should look something like this

------------------------------------------------------------------------------

app.activeDocument.activeLayer = app.activeDocument.pluginItems[0]
app.activeDocument.pluginItems[0].selected = true
app.doScript("ReliseToLayers", "Set 1");
----------------------------------------------------------------------------------------
I can't highlight Symbol Set syblayer to then run the command (Release to Layers (Sequence))

 

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
Guide ,
Apr 16, 2023 Apr 16, 2023

A "symbol set" produced by the Symbol Sprayer tool is a pluginItem. 

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