Hi,
I'm trying to remove a swatchcolor and replacing it with an other one.
So far without any success.
According to the referenceguide it should be something like this:
myColor is the swatch to be replaced by replaceColor.
var myColor = myDocument.colors.item("tekstkleur");
var replaceColor = myDocument.colors.item(categorie);
myColor.remove[replacingWith: replaceColor];
But the error is "] expected"
Can anyone shine some light on this subject.
Kind regards
Erwin van Beem
I'm trying to remove a swatchcolor and replacing it with an other one.
So far without any success.
According to the referenceguide it should be something like this:
myColor is the swatch to be replaced by replaceColor.
var myColor = myDocument.colors.item("tekstkleur");
var replaceColor = myDocument.colors.item(categorie);
myColor.remove[replacingWith: replaceColor];
But the error is "] expected"
Can anyone shine some light on this subject.
Kind regards
Erwin van Beem