• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Question about position in space of an object

Scheduled Pinned Locked Moved Developers' Forum
6 Posts 3 Posters 488 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    bender
    last edited by 14 Aug 2008, 16:33

    I've been looking but couldn't find any method that can supply you with this information. If I add an object to my space, for example an object from the 3d warehouse, and I need to know its position in 3d space (ie, its coordinates (x, y, z) ), is there a method that does this for me? How can I do this?

    I can't imagine there not being such a function. If I move an object to say (100, 200, 300) through the ruby console, that coordinate I assume should be somewhere present in the object's information. If anyone can help me I'd really appreciate it.

    1 Reply Last reply Reply Quote 0
    • D Offline
      daiku
      last edited by 14 Aug 2008, 17:03

      This is obtained through the object's transformation.

      Clark Bremer
      http://www.northernlightstimberframing.com

      1 Reply Last reply Reply Quote 0
      • B Offline
        bender
        last edited by 14 Aug 2008, 17:20

        Could you be a little bit more precise? I've looked in the transformation class, and see a method that returns the x-axis, y-axis and z-axis vector. I am just looking to get a certain entitie's coordinate. A function that returns it's 3d position.

        1 Reply Last reply Reply Quote 0
        • D Offline
          daiku
          last edited by 14 Aug 2008, 17:42

          See if transformation.origin returns the result you are expecting.

          Clark Bremer
          http://www.northernlightstimberframing.com

          1 Reply Last reply Reply Quote 0
          • C Offline
            cornel
            last edited by 14 Aug 2008, 17:46

            Bender,
            For coordinates, you can use Jim's Query Tool (QueryToolbar.rb).
            Search for QueryToolbar.zip !

            Cornel

            1 Reply Last reply Reply Quote 0
            • B Offline
              bender
              last edited by 18 Aug 2008, 17:14

              thanks! That seems to be what I need.

              Bender

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                2/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement