NoColor bug on unfilled objects

if (selection[0].strokeColor == '[NoColor]'); // true
if (selection[0].stroked == false); // true
var msg = 'Adobe Illustrator: ' + app.version;
msg += '\nPath filled: ' + selection[0].filled;
msg += '\nPath fill: ' + selection[0].fillColor;
msg += '\nPath gray color: ' + selection[0].fillColor.gray;
alert(msg);
var msg = 'Adobe Illustrator: ' + app.version;
var noColor = new NoColor();
selection[0].fillColor = noColor;
msg += '\nPath fill: ' + selection[0].fillColor;
alert(msg);

--

--

--

Sergey Osokin. I’m a illustrator & Script Developer (Ai, Ps). Writing about bugs and tricks.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Top 7 Hybrid Mobile App Frameworks in 2019

Introduction Of React Hook

NOTE | Vue — How to redirect to external URL

Koa vs Express

//platform.twitter.com/widgets.js from Twitter https://twitter.com/thehikeexperts

How to make REST API’s using Node.js, Express.js & Typescript Decorators

REST API’s using Node.js, Express.js & Typescript Decorators | 6Questions

Build a Full-Stack App With React, GraphQL, MongoDB, and Apollo

Everything You Need to Know About React Component Life Cycles

Image of an amusement park ride at night.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
AiScripts

AiScripts

Sergey Osokin. I’m a illustrator & Script Developer (Ai, Ps). Writing about bugs and tricks.

More from Medium

Seven multiplayer talks you need to see at GDC

Top 5 Reasons To Use Godot

Rose with the Godot logo in the center.

Rapid Prototyping with dat.GUI

Creating 3D Solar System in 2D View