Skip to main content
Inspiring
April 16, 2023
Question

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

  • April 16, 2023
  • 2 replies
  • 542 views

Hi all.

 

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

 

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

 
 
 
 
 
This topic has been closed for replies.

2 replies

femkeblanco
Legend
April 16, 2023

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

m1b
Community Expert
Community Expert
April 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

AnyONAuthor
Inspiring
April 16, 2023

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))