• Login
sketchucation logo sketchucation
  • Login
⚠️ Libfredo 15.4b | Minor release with bugfixes and improvements Update

[rubydoc] EntityObserver vs EntitiesObserver?

Scheduled Pinned Locked Moved Developers' Forum
3 Posts 2 Posters 275 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.
  • T Offline
    thomthom
    last edited by 9 Feb 2009, 17:15

    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 9 Feb 2009, 21:51

      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
      • T Offline
        thomthom
        last edited by 9 Feb 2009, 21:56

        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
        1 / 1
        • First post
          1/3
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement