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

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

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

TOPICS
Design , How to

Views

1.4K

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
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 16, 2020 Jan 16, 2020

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

Votes

Translate

Translate
Community Expert ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Community Beginner ,
Jan 13, 2020 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

 

Votes

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
community guidelines
Community Expert ,
Jan 14, 2020 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)

Votes

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
community guidelines
Community Beginner ,
Jan 14, 2020 Jan 14, 2020

Copy link to clipboard

Copied

Thanks a lot!

Votes

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
community guidelines
Community Beginner ,
Jan 15, 2020 Jan 15, 2020

Copy link to clipboard

Copied

hello, Kennethkawamoto2

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

Votes

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
community guidelines
Community Expert ,
Jan 16, 2020 Jan 16, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines