Highlighted

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

Community Beginner ,
Jan 13, 2020

Copy link to clipboard

Copied

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

 

<The Title was renamed by moderator>

Adobe Community Professional
Correct answer by Kenneth Kawamoto | Adobe Community Professional

> (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

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

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

Community Beginner ,
Jan 13, 2020

Copy link to clipboard

Copied

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

 

<The Title was renamed by moderator>

Adobe Community Professional
Correct answer by Kenneth Kawamoto | Adobe Community Professional

> (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

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
Jan 13, 2020 0
Adobe Community Professional ,
Jan 13, 2020

Copy link to clipboard

Copied

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

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...
Jan 13, 2020 2
Community Beginner ,
Jan 13, 2020

Copy link to clipboard

Copied

Thanks, Aras

For your reply, here is the screenshot.Screenshot 2020-01-14 at 9.29.20 am.jpg

 

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...
Jan 13, 2020 0
Adobe Community Professional ,
Jan 14, 2020

Copy link to clipboard

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

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...
Jan 14, 2020 2
Community Beginner ,
Jan 14, 2020

Copy link to clipboard

Copied

Thanks a lot!

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...
Jan 14, 2020 0
Community Beginner ,
Jan 15, 2020

Copy link to clipboard

Copied

hello, Kennethkawamoto2

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

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...
Jan 15, 2020 0
Adobe Community Professional ,
Jan 16, 2020

Copy link to clipboard

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

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...
Jan 16, 2020 0