We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Set origin on center of object to change position

Home Forums Puzzles Set origin on center of object to change position

Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #47055
    viham1
    Participant

    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
    Victor

    #47062
    haris
    Customer

    Hi,
    Victor can you provide the source file so I can provide you the solution

    Regards
    Haris

    harisimran1012@gmail.com

    #47065
    GLiFTeK
    Customer

    Hi,
    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.
    :good:

    #47111
    viham1
    Participant

    Hi 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
    Victor

    #68074
    rasa3d
    Participant

    You 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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.