Highlighted

[Design]- How to change the X, Y position object with middle value in XD?

Community Beginner ,
Jan 13, 2020

Copied

How to get the Selected Items X, Y position with middle value in adobe xd

<The Title was renamed by moderator>

> (x + w/2, y + h/2) this formula not working for rotated objects.

For rotated objects you would use the formula something like:

CentreX = X + (W/2 * cos(Rotation * pi/180)) - (H/2 * sin(Rotation * pi/180))
CenterY = Y - (W/2 * sin(Rotation * pi/180)) + (H/2 * cos(Rotation * pi/180))

TOPICS
Design, How to

Views

413

Likes

Report

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

[Design]- How to change the X, Y position object with middle value in XD?

Community Beginner ,
Jan 13, 2020

Copied

How to get the Selected Items X, Y position with middle value in adobe xd

<The Title was renamed by moderator>

> (x + w/2, y + h/2) this formula not working for rotated objects.

For rotated objects you would use the formula something like:

CentreX = X + (W/2 * cos(Rotation * pi/180)) - (H/2 * sin(Rotation * pi/180))
CenterY = Y - (W/2 * sin(Rotation * pi/180)) + (H/2 * cos(Rotation * pi/180))

TOPICS
Design, How to

Views

414

Likes

Report

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

Copied

Can you post a screenshot what you want to achive? Thank you

Likes

Report

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

Copied

Thanks, Aras

Likes

Report

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

Copied

You cannot change the registration point of objects in XD. When you code a website or an app, the coordination of an object is always based on the top left corner, so it's logical. You can calculate it through, i.e. (x + w/2, y + h/2)

Likes

Report

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

Copied

Thanks a lot!

Likes

Report

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

Copied

hello, Kennethkawamoto2

(x + w/2, y + h/2) this formula not working for rotated objects.

Likes

Report

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

Copied

> (x + w/2, y + h/2) this formula not working for rotated objects.

For rotated objects you would use the formula something like:

CentreX = X + (W/2 * cos(Rotation * pi/180)) - (H/2 * sin(Rotation * pi/180))
CenterY = Y - (W/2 * sin(Rotation * pi/180)) + (H/2 * cos(Rotation * pi/180))

Likes

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 16, 2020 0
Resources
XD is Crashing
What is new in XD 34
Changes to XD Starter plan