• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to hide components from teh Components Manger?

Scheduled Pinned Locked Moved Newbie Forum
sketchup
14 Posts 6 Posters 966 Views
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 14 Feb 2008, 10:10

    I noticed something while working with one of the components that comes with SU. When I place a car into the scene only the whole car appears as a component in the Component Manager. The nested components such as the tyres and side mirror and lights doesn't appear.

    How can I do this to the components I make myself. Often they consists of sub components which I really don't have any of for being listed in the Manager.

    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 14 Feb 2008, 10:28

      In the Component Dialog fly-out menu is an "expand" toggle. Is that what you mean?

      Hi

      1 Reply Last reply Reply Quote 0
      • T Offline
        thomthom
        last edited by 14 Feb 2008, 10:34

        No, what I want to do is hide some components from the Component Manager. Similar to how the default SU components do it.

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

        1 Reply Last reply Reply Quote 0
        • G Offline
          GreyHead
          last edited by 14 Feb 2008, 10:40

          That is what the expand toggle does I think??

          Bob

          1 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 14 Feb 2008, 11:12

            No, the expand button let you see the hidden components.

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

            1 Reply Last reply Reply Quote 0
            • A Offline
              Alan Fraser
              last edited by 14 Feb 2008, 11:24

              I'm wondering if this is new behaviour. It's certainly the case that if you Import a skp rather than opening it, you only see the top level component, not all the sub-components.
              But I was kind of under the impression that's what happened anyway when actually constructing them...that if they were bundled-up into a higher level component, all the constituent parts disappeared. Maybe my memory is going.

              3D Figures
              Were you required to walk 500 miles? Were you advised to walk 500 more?
              You could be entitled to compensation. Call the Pro Claimers now!

              1 Reply Last reply Reply Quote 0
              • G Offline
                Gaieus
                last edited by 14 Feb 2008, 11:25

                Yes but it only seems to work with imported geometry not native (i.e. made) within your model.

                Gai...

                1 Reply Last reply Reply Quote 0
                • T Offline
                  thomthom
                  last edited by 14 Feb 2008, 11:30

                  Maybe the component has to be created while inside the top component..?

                  I'll have a go and see what happens if I export an component and then import it. (this would still not be ideal as it makes for an awkward workflow...)

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

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 14 Feb 2008, 12:34

                    Just did a quick test:

                    Imported components will hide their sub-components.

                    Creating a new component while within an existing component will not hide it.

                    I wonder... maybe a ruby script can access the properties that controls this..?

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

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      Gaieus
                      last edited by 14 Feb 2008, 12:41

                      True it would be more handy if SU in this case worked more consistently. I also tend to create extremely compound models from tiny bits of components and this would allow me to browse the browser ( πŸ˜’ ) more efficiently.

                      Gai...

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        thomthom
                        last edited by 14 Feb 2008, 12:43

                        Just came across this:

                        @unknownuser said:

                        Hi,

                        In the Ruby API docs, there is this ``hidden?'' method for components:

                        hidden?
                        
                        The hidden method is used to determine if this component definition should be hidden on the component browser.
                        

                        Is there a way to tell SU that a component is not to be shown in the browser?

                        http://groups.google.com/group/Ruby-API/browse_thread/thread/7fcd81914105b343/63f779a37291dbb7?lnk=gst&q=components#63f779a37291dbb7

                        So it looks like a ruby script might be possible.

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

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          Gaieus
                          last edited by 14 Feb 2008, 12:47

                          Let's hope some of the ruby gurus chime in...

                          Gai...

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 14 Feb 2008, 22:21

                            To fix it manually you can Save_As the nested component [made of sub-components] 'externally' (you just hover over its icon the the compo'browser and select off the context-menu...). Then erase any instances of it and purge the model of unused compos. It and it's sub-compos will purge if they haven't got instances. Then import the externally saved comp back in and now you have one compo that's made from several nested compos BUT only one compo shows in the browser !

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              thomthom
                              last edited by 15 Feb 2008, 07:13

                              The problem is that doesn't work well with my workflow. I'm using V-Ray for SU and when you import components it won't import the V-Ray materials.

                              If I get time over the weekend I'll see if I can learn enough Ruby to make a script 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
                              • 1 / 1
                              1 / 1
                              • First post
                                11/14
                                Last post
                              Buy SketchPlus
                              Buy SUbD
                              Buy WrapR
                              Buy eBook
                              Buy Modelur
                              Buy Vertex Tools
                              Buy SketchCuisine
                              Buy FormFonts

                              Advertisement