sketchucation logo sketchucation
    • Login
    1. Home
    2. pistepilvi
    3. Topics
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info
    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
      334 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
      486 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