sketchucation logo sketchucation
    • Login
    1. Home
    2. pistepilvi
    3. Topics
    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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 5
    • Groups 1

    Topics

    • pistepilviP

      Material observer behaviour on OS X

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      4
      0 Votes
      4 Posts
      361 Views
      tt_suT
      @eneroth3 said: <offtopic> There's a Materials.current method ?? For my latest project I created a materials observer listening to active material change just so it could be assigned to a variable so I later could know what material is active. How could I have missed this? cleaning up some code </offtopic> Beware that the material might not be in the model yet - in older version of SketchUp it can cause crashes if you try to apply the material to entities.
    • pistepilviP

      Detecting active model switches on OS X

      Watching Ignoring Scheduled Pinned Locked Moved Developers' Forum
      12
      0 Votes
      12 Posts
      570 Views
      pistepilviP
      @dan rathbun said: Attach a model observer and provide onDeleteModel and onEraseAll callbacks that output something to the console. Thanks again! onEraseAll does fire on Windows when opening another model, but not on OS X unfortunately. Interestingly enough, I also can't get it to fire on erasing all objects. onDeleteModel doesn't seem to ever trigger. I'll focus on other issues for now, this one can wait.
    • 1 / 1