Copy link to clipboard
Copied
Hi,
I'm creating a new color picker panel for illustrator cc 2018.
I know how to set fillColor/strokeColor for selection.
activeDocument.defaultFillColor = newColor;
When I select a color, I send the value to defaultFillColor or defaultStrokeColor.
But if I change defaultFillColor by the original color picker dialog, how can I get activeDocument.defaultFillColor?
Is there a event listerer in illustrator?
Copy link to clipboard
Copied
For the beginning:
Copy link to clipboard
Copied
Bonjour,
Tout simplement
var color = docRef.defaultFillColor;
alert(color.typename);
Copy link to clipboard
Copied
I am worried that I did not explain clearly.
When I change color by my color picker, the defaultFillColor will be changed.
But when the defaultFillColor is changed by selecting one filled path or original color picker dialog, how can I get the new defaultFillColor to update my color picker automatically?
pixxxel schubserThank you for your reply. Do you mean I need to use C#?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now