Skip to main content
daitranthanhoa
Inspiring
November 4, 2019
Question

How can duplicate a pattern color?

  • November 4, 2019
  • 1 reply
  • 326 views

How can duplicate a pattern color?

I have a pattern color in swatches and apply to text: 

Now i want copy this color to a new color:

i had try this method , but it not support:

var doc1=app.documents[0];
var sw = doc1.swatches.getByName(doc1.textFrames[0].paragraphs[0].characterAttributes.fillColor.pattern.name).duplicate();

 

How can duplicate a pattern color?

This topic has been closed for replies.

1 reply

meganchi
Legend
November 4, 2019

So you want to duplicate a pattern swatch? Open your swatches panel where the pattern color is, then select it. Next, go to the hamburger menu and select "duplicate swatch". If you would like to change the color within the duplicated pattern color, then double-click it in your swatches panel in order to go into edit mode. Select the areas of color you wish to change, then in the upper left of your screen click on the "Done" button. Now you should see the updated pattern color in your swatches.

daitranthanhoa
Inspiring
November 5, 2019

I want duplicate  a pattern swatch by Script or COM.