sketchucation logo sketchucation
    • Login
    1. Home
    2. kayeee
    3. Posts
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    K
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Groups 1

    Posts

    Recent Best Controversial
    • RE: Getting Rotation Value From Rotate Tool

      @dan rathbun said:

      1. Select the group instance
      1. Open the Ruby Console
      2. In the console type:
      
      > sel = Sketchup;;active_model.selection
      > g = sel[0]
      > a = X_AXIS.angle_between(g.transformation.xaxis)
      > 
      

      The angle will be in radians.

      To display degrees:

      
      > a.radians
      > 
      

      Thank you! Exactly what I needed!

      posted in Developers' Forum
      K
      kayeee
    • Getting Rotation Value From Rotate Tool

      Hi,

      I'm having trouble obtaining a angle value for how much a group is rotated when the user uses the Rotate Tool. The Group is 2D sitting in the x and y plane and I would like to find out how much it is rotated about an axis at the center of the group in the z direction. From reading through the forums, I know you cannot directly obtain information from the built-in Rotate Tool, but I was hoping there would be an easy work around that compares the starting orientation with the ending orientation. I'm still new to Ruby and Sketchup so apologies if there is a simple solution I'm missing.

      Thanks in advanced.

      posted in Developers' Forum
      K
      kayeee
    • 1 / 1