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

    [Questions Plugins] Hide Groups / inactive components

    Scheduled Pinned Locked Moved Plugins
    16 Posts 5 Posters 779 Views 5 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      I have a half-baked version that should work if the InstanceObserver wasn't [currently] broken in v8 [was OK in v6!]...
      We await an update to the Observers...

      TIG

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

        @tig said:

        I have a half-baked version that should work if the InstanceObserver wasn't [currently] broken in v8 [was OK in v6!]...
        We await an update to the Observers...

        What's broken?
        I had problems in earlier versions...

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

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          The onOpen() and onClose() methods don't trigger for me in v8 - try the API example.

          TIG

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

            They do for me - I had problems in earlier versions - at least SU7.x.
            http://www.thomthom.net/software/sketchup/observers/

            I do now see I noted that in SU8 there's been reports that the observer might bugsplat when closing SU - though I think there are certain conditions for this...

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

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              I have a tool that adds an instance of the observer to every instance of every definition [it also tries to remove them first in case they already have them] - I know it's adding as it returns a message in the console as it does it.... BUT then when I open a group/instance it does NOT return a value at all! [e.g. puts instance] - this is on PC not OSX...

              TIG

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

                But with the bare bone example in the API - which you refereed to - does that work for you?

                @tig said:

                I have a tool that adds an instance of the observer to every instance of every definition

                Would it not be easier to use the ModelObserver for this? http://code.google.com/apis/sketchup/docs/ourdoc/modelobserver.html#onActivePathChanged

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

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  Perhaps.
                  My InstanceObserver is only half-working - perhaps my code is flaky ?
                  Watch this space...

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    I now have it working properly - I'll post something asap...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • TIGT Offline
                      TIG Moderator
                      last edited by

                      Here it is http://forums.sketchucation.com/viewtopic.php?p=280618#p280618

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • david_hD Offline
                        david_h
                        last edited by

                        oh yeah baby!!! I can't wait for this one!
                        😆

                        If I make it look easy...It is probably easy

                        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