sketchucation logo sketchucation
    • Login
    1. Home
    2. algorytmus
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🫛 Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download
    A
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 2
    • Groups 1

    algorytmus

    @algorytmus

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    algorytmus Unfollow Follow
    registered-users

    Latest posts made by algorytmus

    • Mouse move handling when dropping

      I work on the newest version of Sketchup on Windows 7.

      I ran into some problems while working on my custom tool for Sketchup implementing Tool interface: http://www.sketchup.com/intl/en/developer/docs/ourdoc/tool. What I need to get working is onMouseMove (also onLButtonUp) for the following scenario:
      It is working as expected in most cases except when something is dragged from another application but when moving the mouse (preview drop) over a model (sketchup view) none of those mouse events are fired for me in the Tool implementing class. So what I really need to do is to be able to handle dropping; pretty much by getting onMouseMove and onLButtonUp working. What I am able to do is to send some command to do something when dragging is started to sketchup Tool class if that helps. I was wondering maybe I need to send some signal to the operating system of the following event: MouseKeyUp but this is quite dramatic.

      Thanks in advance,
      Pawel

      posted in Developers' Forum
      A
      algorytmus
    • Operations not commited

      Hi all,

      I got a problem with committing an operation inside a sketchup plugin. To reproduce:

      ` model = Sketchup.active_model

      model.start_operation 'updateName'
      @some_component.name="newName"
      model.commit_operation

      model.start_operation 'hide_all_except'
      @some_component.instances[0].hidden = true
      model.abort_operation`

      Both operations are aborted.

      It is a simplification, there are more operations but none of them are model.*_operation related.
      What I am doing wrong?

      posted in Developers' Forum
      A
      algorytmus