Tagged: blender
- This topic has 4 replies, 4 voices, and was last updated 1 year, 1 month ago by rasa3d.
-
AuthorPosts
-
2021-11-20 at 1:01 pm #47055viham1Participant
Hello,
I am having trouble centering an object on another as the size (it’s a text object) change when the user change the text. In blender I have placed the origin as the “Center of Mass”. However when converted and opened in Verge3D, the position is made relative to the left side of the object.When the size of the text increase or decrease it is impossible to adjust its position and center it on X without knowing the new dimension. If I could update its position relative to its center that would be easy as the center coordinate of the other object is fixed.
Could you help on this ?
Is there anyway to get dimension of an object (and not scale) ?
Is there anyway to have the origin of an object at its center for position change ?Thank you !!
Best regards
Victor2021-11-21 at 6:13 am #47062harisCustomerHi,
Victor can you provide the source file so I can provide you the solutionRegards
Haris2021-11-21 at 9:15 am #47065GLiFTeKCustomerHi,
I’ve made 2 plug-ins to add to my Object Management Plugin Pack.
They are “Get Center Of Object” and “Get Dimensions Of Object”.
I’ll probably have them added in the next day or so.
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2021-11-22 at 1:01 pm #47111viham1ParticipantHi both,
Thank you for your quick answer.
There is not much I can provide you to help (the 3D is unfortunately confidential) but I can describe the case as detailed as possible.I have a 3D with an object (a rectangle), with a text above it. The text can be change through Verge3D and the UI. However when the size of the text change it is not centered anymore on the rectangle as it’s position is anchored to the left of it.
In order to recenter it, I have 2 options :
– Have its position defined by the center and not the left side, this would solve the problem immediately
– Know the new size of the text and given the size of the rectangle that is fixed, calculate the new position of the left anchored. This requires knowing the dimension of the text and I don’t think there is a puzzle for that.Let me know if this can be solved or when the plug-in would be available ?
Thank you
Victor2023-10-30 at 2:01 pm #68074rasa3dParticipantYou can change the text object alignment to horizontal center and vertical middle. This will solve your issue. Also, you can create a text object with puzzles, activate its advanced font options, and align it to the center for both horizontal and vertical.
-
AuthorPosts
- You must be logged in to reply to this topic.