Skip to main content
Known Participant
December 19, 2020
Answered

change stroke color to none

  • December 19, 2020
  • 2 replies
  • 1104 views

i need a simple script that set stroke color of shape to none.

 

Thanks!

This topic has been closed for replies.
Correct answer pixxxelschubser

Hi @aviel222 

the solution is simple, but you may need to change the name of "NoColor" depending on your language.

app.selection[0].strokeColor = app.activeDocument.swatches.getByName("[None]").color; // depends on language

 

But again:

You haven't read this post carefully - have you?

Please mark answered questions as solved by marking one or more answers as "Correct Answer". 

 

 

2 replies

pixxxelschubser
Community Expert
Community Expert
December 19, 2020

😉

Not any - but good and correct solutions.

 

Glad we could help.

😄

pixxxelschubser
Community Expert
pixxxelschubserCommunity ExpertCorrect answer
Community Expert
December 19, 2020

Hi @aviel222 

the solution is simple, but you may need to change the name of "NoColor" depending on your language.

app.selection[0].strokeColor = app.activeDocument.swatches.getByName("[None]").color; // depends on language

 

But again:

You haven't read this post carefully - have you?

Please mark answered questions as solved by marking one or more answers as "Correct Answer". 

 

 

aviel222Author
Known Participant
December 19, 2020
From now on, any solution is correct - I will mark what you requested
Thanks!