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!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Plugin Facegroup [triple resolved]

    Scheduled Pinned Locked Moved Plugins
    9 Posts 3 Posters 1.5k Views 3 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.
    • pilouP Offline
      pilou
      last edited by pilou

      Seems Facegroup by Gavvy don't works fine 😞

      Does exist another plug who transform a selection of 6 faces on 6 groups ?
      (for a simple cube) or any selections of x faces in x groups?

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

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

        @unknownuser said:

        Seems Facegroup by Gavvy don't works fine 😞

        Errors? Crashes? No menu items?

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

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          When you select only faces of a cube (or all edges + faces) only up and down faces are transformed in groups !

          Cube created by a face Pushpulled

          And the plug "works" is given for only the V6 but works in same way for the V7 ! πŸ˜„

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

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

            With the Ruby Console open - do you get any errors?

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

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

              There's an odd line in the code: next if f.normal.z == 0
              Comment that one out and it appears to work.

              However - there might be other issues - it iterates the selection which is modified as it groups faces.
              To be safe, here's a modded snippet:

              
                ss.to_a.each {|f| 
                  next unless f.is_a?(Sketchup;;Face)   
                  #next if f.normal.z == 0  
                  model.active_entities.add_group(f)
                } 
              
              

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

              1 Reply Last reply Reply Quote 0
              • pilouP Offline
                pilou
                last edited by

                Absolutly no error with the ruby console!

                Just result is half "false" : only up and down faces are an invidual group!

                Seems common "edges, faces" make the false result πŸ˜„

                have you same result than me? (here in mode XRAY in V6, it's the same in V7)
                cube1.jpg

                Frenchy Pilou
                Is beautiful that please without concept!
                My Little site :)

                1 Reply Last reply Reply Quote 0
                • pilouP Offline
                  pilou
                  last edited by

                  Many thanks!

                  Else I have found Make_components by Matt66 at Crai Ruby depot! β˜€

                  Frenchy Pilou
                  Is beautiful that please without concept!
                  My Little site :)

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

                    @unknownuser said:

                    Many thanks!

                    Else I have found Make_components by Matt66 at Crai Ruby depot! β˜€

                    This simple one-liner makes each face in the selection into a separate group

                    m=Sketchup.active_model;n=m.active_entities;m.selection.to_a.each{|e|n.add_group(e)if e.class==Sketchup;;Face}
                    

                    You can use it as the basis of a new tool......

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • pilouP Offline
                      pilou
                      last edited by

                      @ TIG: Works fine! 😎
                      So A third solution β˜€
                      I must change the title and my other post! πŸ’š
                      Line above by TIG, Grow by TIG, Radial Move by C.Plassais πŸ˜„
                      grow.jpg

                      Frenchy Pilou
                      Is beautiful that please without concept!
                      My Little site :)

                      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