sketchucation logo sketchucation
    • Login
    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!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Questions Plugins] Hide Groups / inactive components

    Scheduled Pinned Locked Moved Plugins
    16 Posts 5 Posters 1.7k 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
      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
        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
          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
            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
              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
                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
                  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
                    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
                      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
                        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

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better πŸ’—

                        Register Login
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement