change stroke color to none

Community Beginner ,
Dec 19, 2020

Copy link to clipboard

Copied

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

 

Thanks!

Most Valuable Participant
Correct answer by pixxxelschubser | Most Valuable Participant

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". 

 

 

TOPICS
Scripting

Views

52

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

change stroke color to none

Community Beginner ,
Dec 19, 2020

Copy link to clipboard

Copied

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

 

Thanks!

Most Valuable Participant
Correct answer by pixxxelschubser | Most Valuable Participant

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". 

 

 

TOPICS
Scripting

Views

53

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 19, 2020 0
Most Valuable Participant ,
Dec 19, 2020

Copy link to clipboard

Copied

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". 

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 19, 2020 0
Community Beginner ,
Dec 19, 2020

Copy link to clipboard

Copied

From now on, any solution is correct - I will mark what you requested
Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 19, 2020 0
Most Valuable Participant ,
Dec 19, 2020

Copy link to clipboard

Copied

😉

Not any - but good and correct solutions.

 

Glad we could help.

😄

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 19, 2020 0
Resources