Why is left alignment off?

Participant ,
Nov 03, 2020

Copy link to clipboard

Copied

I have a very simple CEP script.  In it I create a new group with different elements.

I then attempt to place this group like so:

newGroup.left = 597;

When I do this it runs in illustrator but when i see the X value it appears like so:

597.8503 pt

What is going on with it? Why would it chnage add the additional .8503?

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

left includes stroke width, use position[0] instead

TOPICS
Scripting

Views

36

Likes

Translate

Translate

Report

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

Why is left alignment off?

Participant ,
Nov 03, 2020

Copy link to clipboard

Copied

I have a very simple CEP script.  In it I create a new group with different elements.

I then attempt to place this group like so:

newGroup.left = 597;

When I do this it runs in illustrator but when i see the X value it appears like so:

597.8503 pt

What is going on with it? Why would it chnage add the additional .8503?

Adobe Community Professional
Correct answer by CarlosCanto | Adobe Community Professional

left includes stroke width, use position[0] instead

TOPICS
Scripting

Views

37

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 03, 2020 0
Adobe Community Professional ,
Nov 03, 2020

Copy link to clipboard

Copied

left includes stroke width, use position[0] instead

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 03, 2020 0
OhmsG LATEST
Participant ,
Nov 04, 2020

Copy link to clipboard

Copied

@CarlosCanto 

THANK YOU FOR THE ANSWER!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 04, 2020 0
Resources