sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [rubydoc] EntityObserver vs EntitiesObserver?

    Scheduled Pinned Locked Moved Developers' Forum
    3 Posts 2 Posters 276 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      What's the difference? both give example where the observer is attached to a face.

      And EntityObserver list def onChangeEntity (entity) while EntitiesObserver gives def onEntityChanged (entity) as an example for event, but it's not listed further down the page.

      Is it just the example for EntitiesObserver that's incorrect?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        The documentation for Observsers is especially fubar.

        
        Sketchup;;EntityObserver.instance_methods
        ["onChangeEntity", "onEraseEntity"]
        
        Sketchup;;EntitiesObserver.instance_methods
        ["onElementAdded", "onEraseEntities", "onContentsModified", "onElementRemoved"]
        
        

        I made this plugin for experimenting with Observers: http://sketchuptips.blogspot.com/2008/03/plugin-oberver-tests.html

        Hi

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          Thanks Jim! I'll check it out.
          I found I needed to monitor stuff, but suddenly found myself a bit lost.

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          Buy SketchPlus
          Buy SUbD
          Buy WrapR
          Buy eBook
          Buy Modelur
          Buy Vertex Tools
          Buy SketchCuisine
          Buy FormFonts

          Advertisement