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

    Alienizer

    @Alienizer

    10
    Reputation
    1
    Profile views
    120
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    Alienizer Unfollow Follow
    registered-users

    Latest posts made by Alienizer

    • RE: Windows themes in Skecthup v8

      @dave r said:

      Oh. The only things you can change are those you can make in the display settings under the Control Panel. You won't be able to change the button appearance though.

      I was afraid you'd say that! I wonder if we can add a manifest file to the .exe?

      posted in SketchUp Discussions
      A
      Alienizer
    • RE: Windows themes in Skecthup v8

      @dave r said:

      What exactly are you trying to do?

      Turn on the Windows themes, so that the interface looks like Windows XP/Vista/7 as oppose to Windows 95!

      I'm running Sketchup v8 on Windows 7 and it looks like Win95 😮

      posted in SketchUp Discussions
      A
      Alienizer
    • Windows themes in Skecthup v8

      Is there a way to turn on Windows themes in Skecthup v8?

      posted in SketchUp Discussions sketchup
      A
      Alienizer
    • RE: Back face/material reverse

      Problem solved.

      After doing more testing, displaying the dot(face.normal, ray) returned <0 and when viewed cam rotated 45deg it was >0

      So after applying a transformation_at the dot() returned the correct cosine. So now my code works perfectly

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse

      @dan rathbun said:

      Many of the ids are already listed in the API doc: Sketchup.send_action()

      Ah!

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse

      @dan rathbun said:

      or ...

      def onMouseMove(flags, x, y, view)
      >   Sketchup.set_status_text("x; #{x} , y; #{y}")
      > end
      

      or...

      def onMouseMove(flags, x, y, view)
        Sketchup.set_status_text("x=%d, y=%d"%[x,y])
      end
      

      @unknownuser said:

      BTW.. on Window... you can use a Coordinate Tool that displays in model units:
      Sketchup.send_action( 21324 )
      the tool_name is "CoordinateTool" but there doesn't seem to be a send_action string for it.

      How did you come up with 21324?

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse
      def onMouseMove(flags, x, y, view)
        Sketchup.set_status_text(x.to_s+" ; "+y.to_s)
      end
      

      Dan, the above code show the mouse coord to be 0,0 at the top-left corner of the viewport, regardless where the window is on the desktop. Any reference to screen coords are within the viewport, not the physical screen. I know about the status text, SK needs to refresh for it to show, and it gets replaces when you move the mouse.

      TIG, my version is 8.0.4011 in the 'About' box.

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse

      @dan rathbun said:

      Alan..

      I know what you mean, but I found out in another thread that raytest is FUBAR in SU8, pick is more likely using the same code as raytest.

      That explain why my code works 100% in SU7 but not in SU8

      from thread...
      http://forums.sketchucation.com/viewtopic.php?f=180&t=31326&p=275718&hilit=FUBAR#p275718

      @thomthom said:

      Why do you not want to use an InputPoint? You can use the ip.face to test if you got the point from a face and ignore the rest.

      But, yes, you can shoot a ray:

      ` ray = view.pickray(x, y)
      result = model.ray_test( ray )

      TODO: Recast on hidden entities`

      Then remember that in SU8 the ray_test is FUBAR.

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse

      @tig said:

      How is your code finding the mouse position without a tool to monitor the cursor ?

      It's not using the mouse! If you read my code, I have 2 for loops to scan the screen viewport.

      Later I will add mouse support, but my code now is only viewport scanning.

      posted in Developers' Forum
      A
      Alienizer
    • RE: Back face/material reverse

      @tig said:

      You need to make it [and launch it] as a Sketchup Tool.

      ?? My code works fine 100% of the time on any models in SU7, it's screwy in SU8. Perhaps it's a bug in SU8, and nothing wrong with my code?

      posted in Developers' Forum
      A
      Alienizer