sketchucation logo sketchucation
    • Login
    πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

    Rotate to Mouse point (Light LookAt tool) Plugin Help

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 312 Views 2 Watching
    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.
    • J Offline
      jaylee
      last edited by

      Hi,

      I am trying to create a tool/plugin which when a light(or any object) is selected,
      It rotates the object/light to where the mouse is.

      for example, if I click on a light, right click to activate the tool and then click on a surface, the light points to(looks at) the surface the mouse was on.

      This was easily achievable in other 3D tools because it was easy to get the currently selected object, get the point of the mouse and then call a function like LookAt(x,y,z).

      I was wondering if this was possible in Sketchup and how I would achieve it.

      Could someone please help me in pointing me in the right direction with some sample code or similar examples?

      Thanks in advance.

      1 Reply Last reply Reply Quote 0
      • T Offline
        TeKnoel
        last edited by

        Try Tig's Free Rotate for this. It's Sweet!

        http://forums.sketchucation.com/viewtopic.php?f=323&t=30380&p=274784&hilit=free+rotate#p274784

        1 Reply Last reply Reply Quote 0
        • J Offline
          jaylee
          last edited by

          @teknoel said:

          Try Tig's Free Rotate for this. It's Sweet!

          http://forums.sketchucation.com/viewtopic.php?f=323&t=30380&p=274784&hilit=free+rotate#p274784

          Thanks a lot. it looks very helpful

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

          Advertisement