Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Can the poor performance of createOutline() be increased?

New Here ,
Feb 08, 2012 Feb 08, 2012

I wrote a little Script converting an Array of Strings to outlines for SVG export. I however find the results of createOutline() extremely unsatisfactory, especially when compared to the results of doing the job "manually" (Right click > create outlines).

Right click, "Create Outlines"

RightClickCreateOutlines.png

createOutline() from Script

CreateOutlinesScript.png

From first sight this seems like an issue with conversion accuracy set too low, however I wasn't able to locate a parameter to change the same.

Any help on how to achieve the look of the top image from within a script is highly appreciated.

TOPICS
Scripting
1.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Feb 08, 2012 Feb 08, 2012

Look int the possibility that Align to Pixel Grid is turned on in the Transform panel in this file.

Translate
Adobe
Community Expert ,
Feb 08, 2012 Feb 08, 2012

Look int the possibility that Align to Pixel Grid is turned on in the Transform panel in this file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 09, 2012 Feb 09, 2012

Update: Yes it was the Option "Align new objects to Pixel Grid" in the New File Dialog... Took me some searching 😉

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 02, 2015 Dec 02, 2015

Hi Larry, do you know whether switching this "Align to Pixel Grid" feature can be scripted?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 03, 2015 Dec 03, 2015
LATEST

Note to self: it's available via the property called .pixelAligned

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines