Sergey Osokin
My feedback
366 results found
-
2 votes
Sergey Osokin
supported this idea
·
-
2 votes
An error occurred while saving the comment
Sergey Osokin
supported this idea
·
-
40 votes
Sergey Osokin
supported this idea
·
-
3 votes
Sergey Osokin
supported this idea
·
-
5 votes
Sergey Osokin
supported this idea
·
-
7 votes
Sergey Osokin
supported this idea
·
-
3 votes
Sergey Osokin
supported this idea
·
-
11 votes
The fix has been pushed into the latest 30.3 general release. Please update, check, and comment back if it still happens.
An error occurred while saving the comment
Sergey Osokin
commented
I tested the script in 2026 v30.3.0.182. Yes, now white is ignored during tracing, unlike in previous releases
if (app.documents.length && app.selection.length) {
var item = app.selection[0];
if (item.typename == "RasterItem") {
var trace = item.trace();
var opt = trace.tracing.tracingOptions;
opt.tracingMethod = TracingMethodType.TRACINGMETHODABUTTING;
opt.tracingMode = TracingModeType.TRACINGMODEBLACKANDWHITE;
opt.tracingColorTypeValue = TracingColorType.TRACINGFULLCOLOR;
opt.tracingColors = 2;
opt.ignoreWhite = true; // Ignore White
trace.tracing.tracingOptions = opt;
trace.tracing.expandTracing();
}
}An error occurred while saving the comment
Sergey Osokin
commented
With the appearance of the Ignore Color checkbox, scripts have another big problem besides ignoreWhite. If a user creates a custom preset with Ignore Color enabled and selects a color, and then tries to automate the use of this preset from a script, the scripts cannot load the data about the Ignore Color checkbox from the preset. In the mentioned beta version 30.4.0.80, this issue still persists.
Example:
(function (){
var image = app.selection[0].trace();
var preset = app.tracingPresetsList[19]; // User index of custom preset
image.tracing.tracingOptions.loadFromPreset(preset);
app.redraw();
image.tracing.expandTracing().selected = true;
})();
Sergey Osokin
supported this idea
·
-
2 votes
Sergey Osokin
shared this idea
·
-
3 votes
An error occurred while saving the comment
Sergey Osokin
commented
You can test the script
https://gist.github.com/creold/e10f71de1e65d8da0d3b536e73f977b1An error occurred while saving the comment
Sergey Osokin
commented
Your idea is to draw a polyline segment by segment in a similar way?
Sergey Osokin
supported this idea
·
-
2 votes
An error occurred while saving the comment
Sergey Osokin
commented
A similar problem with spot names encoding https://illustrator.uservoice.com/forums/908050-illustrator-desktop-sdk-scripting-issues/suggestions/48608555-when-getting-ink-name-encoding-gets-broken-for-no
Sergey Osokin
shared this idea
·
-
80 votes
The latest Beta 30.4.0.80 build adds an additional button in the Align panel.
This is a first iteration (I hope), so please try and comment to steer it in the proper direction.
An error occurred while saving the comment
Sergey Osokin
commented
I wonder if the Illustrator team will add support for calling this center alignment command in scripts, as they have done for other Align commands: app.executeMenuCommand("Horizontal Align Left")
Sergey Osokin
supported this idea
·
-
26 votes
An error occurred while saving the comment
Sergey Osokin
commented
To auto-rename swatches, you can use the free BeautifySwatchNames or BeautifySwatchNames Lite script, which includes 31k+ and 4k+ color names: https://github.com/creold/illustrator-scripts/blob/master/md/Color.md#beautifyswatchnames
Sergey Osokin
supported this idea
·
-
34 votes
Claimed to be fixed in the latest 30.3 general release. Please update, check, and comment back if it still happens.
Sergey Osokin
supported this idea
·
-
2 votes
An error occurred while saving the comment
Sergey Osokin
commented
Try replacing the object selection method with switching the Boolean selection property instead of assigning the app.selection collection. This will increase processing time, but it currently works for me on AI v30.1 Mac.
app.activeDocument.selection = null;
for (var i = 0; i < itemsToProcess.length; i++) {
var item = itemsToProcess[i];
item.obj.textRange.fillColor = item.col;
item.obj.selected = true;
app.activeDocument.defaultFillColor = item.newCol;
item.obj.selected = false;
}Update: I'm confused. A day has passed, and your original script worked for me in v30.1 without any problems. Although yesterday I also saw that the cycle was interrupted with error 8702. I restarted Illustrator on Mac for a clean test, and your original script works without errors again. This is very strange.
An error occurred while saving the comment
Sergey Osokin
commented
The error "Error 8702: there is no active document" or another variant "there is no document" occurs not only with defaultFillColor on Mac OS in Adobe Illustrator 2026, but also in rare other types of scripts. On Mac OS with Adobe version 2025 and below, as well as on Windows with Adobe version 2026, there are no problems with your color replacement script.
For example, read a topic from four years ago on a forum about how a collection of open documents breaks down and documents disappears[0]. It seems to me that the problem is similar here, the script and the Illustrator forget that there is an open document.
https://community.adobe.com/questions-652/script-to-save-close-reopen-and-continue-error-8702-there-is-no-document-789390 -
8 votes
Sergey Osokin
supported this idea
·
-
22 votes
Sergey Osokin
supported this idea
·
-
4 votes
The fix has been pushed into the latest 30.3 general release. Please update, check, and comment back if it still happens.
Sergey Osokin
supported this idea
·
-
2 votes
Sergey Osokin
shared this idea
·
-
7 votes
Sergey Osokin
supported this idea
·
The tab character isn't considered the same separator as a space (\s). Adobe's textFrame.words collection is very unreliable. For example, two words with a dot and no space, "lorem.ipsum," are considered one word by the parser. You have to create your own word parser for textFrame, taking into account the possible separator characters.