Announcement

Collapse
No announcement yet.

Max Center Object to 0 World Coordinates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Max Center Object to 0 World Coordinates

    I was wondering if anyone knows of a script or a script that already exists in a package to center any object to the 0, 0, 0 world coordinates. I find myself modeling and always having to do it manually. Would be nice to have a shortcut.
    LunarStudio Architectural Renderings
    HDRSource HDR & sIBL Libraries
    Lunarlog - LunarStudio and HDRSource Blog

  • #2
    doesn't right mouse clicking the XYZ in the move dialog work for you? Or did you want to combine that in a one click menu item?
    Bobby Parker
    www.bobby-parker.com
    e-mail: info@bobby-parker.com
    phone: 2188206812

    My current hardware setup:
    • Ryzen 9 5900x CPU
    • 128gb Vengeance RGB Pro RAM
    • NVIDIA GeForce RTX 4090 X2
    • ​Windows 11 Pro

    Comment


    • #3
      One-click keyboard shortcut haha. I'm an old man. Arthritis is setting in.
      LunarStudio Architectural Renderings
      HDRSource HDR & sIBL Libraries
      Lunarlog - LunarStudio and HDRSource Blog

      Comment


      • #4
        you and be both
        Bobby Parker
        www.bobby-parker.com
        e-mail: info@bobby-parker.com
        phone: 2188206812

        My current hardware setup:
        • Ryzen 9 5900x CPU
        • 128gb Vengeance RGB Pro RAM
        • NVIDIA GeForce RTX 4090 X2
        • ​Windows 11 Pro

        Comment


        • #5
          On it's alignment too?

          for only position use:

          Code:
          for i in selection do i.pos = [0,0,0]
          For position and rotation use

          Code:
          for i in selection do (
          i.pos = [0,0,0]
          i.rotation = (quat 0 0 0 0)
          )
          Bear in mind this is based on it's pivot and not the volume centre of the object. For that use

          Code:
          for i in selection do (
          i.center= [0,0,0]
          i.rotation = (quat 0 0 0 0)
          )

          Comment


          • #6
            Thanks Jo, that is extremely helpful.
            LunarStudio Architectural Renderings
            HDRSource HDR & sIBL Libraries
            Lunarlog - LunarStudio and HDRSource Blog

            Comment


            • #7
              damn old age

              ---------------------------------------------------
              MSN addresses are not for newbies or warez users to contact the pros and bug them with
              stupid questions the forum can answer.

              Comment


              • #8
                The shortest way, I think:

                all objects:
                Code:
                objects.pos=[0,0,0]
                selected objects:
                Code:
                selection.pos=[0,0,0]
                Marc Lorenz
                ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
                www.marclorenz.com
                www.facebook.com/marclorenzvisualization

                Comment


                • #9
                  I really must look into learning some proper programming but where to start? It'd be great to use proper c++ stuff and actually be able to write simple shaders or the likes. How far have you gone with it mark and how did you learn?

                  Comment


                  • #10
                    If you want the center of the selected objects at 0,0,0 instead of the pivot:
                    Code:
                    $.center = [0,0,0]

                    Comment

                    Working...
                    X