sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Groupbytextures.rb

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 3 Posters 503 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.
    • BurkhardB Offline
      Burkhard
      last edited by

      seems it does not work on V7

      Any ideas Rick?

      greets Burkhard

      [http://www.ia-plus.de(http://www.ia-plus.de)]

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        For some reason (which I will try to figure out later), G/Cs are not exploding as expected. If you run it a few times (# of times to run = # of levels of nested groups), it will eventually get everything grouped correctly.

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • BurkhardB Offline
          Burkhard
          last edited by

          Thanks Rick, it is quit useful for me when I'm working with a 3d firm who wants to have the model in groups for every texture. Seems a lot easier for them to make a finish.

          If I run the script the groups and components explode all as expected but they do not regroup by materials. That's why I asked if it works in V7.

          ( For exploding I can use the bomb.rb but for grouping by materials I need the script )

          Burkhard

          [http://www.ia-plus.de(http://www.ia-plus.de)]

          1 Reply Last reply Reply Quote 0
          • M Offline
            mirjman
            last edited by

            could this be because the material is applied to the group and not at the face level?

            1 Reply Last reply Reply Quote 0
            • BurkhardB Offline
              Burkhard
              last edited by

              No, I tried it with simple boxes and just one face on every box. Can you confirm this or does it work for you?

              [http://www.ia-plus.de(http://www.ia-plus.de)]

              1 Reply Last reply Reply Quote 0
              • M Offline
                mirjman
                last edited by

                i can't seem to replicate this, can you tell me what you are doing to cause the problem

                1 Reply Last reply Reply Quote 0
                • R Offline
                  RickW
                  last edited by

                  @burkhard said:

                  If I run the script the groups and components explode all as expected but they do not regroup by materials. That's why I asked if it works in V7.

                  Strange. I tried it, and it grouped everything without a problem. Please try running the script while the the Ruby Console (Window>Ruby console) is open, and see if any error messages appear. If so, copy and paste them here and I will see what is happening.

                  Or if you can email me the model, I will look at it.

                  Thanks,

                  RickW
                  [www.smustard.com](http://www.smustard.com)

                  1 Reply Last reply Reply Quote 0
                  • BurkhardB Offline
                    Burkhard
                    last edited by

                    This is what comes out:


                    error.jpg

                    [http://www.ia-plus.de(http://www.ia-plus.de)]

                    1 Reply Last reply Reply Quote 0
                    • R Offline
                      RickW
                      last edited by

                      Just a guess - try purging unused materials, and see if that fixes the problem. If so, then I have an easy fix. 😄

                      RickW
                      [www.smustard.com](http://www.smustard.com)

                      1 Reply Last reply Reply Quote 0
                      • BurkhardB Offline
                        Burkhard
                        last edited by

                        You're right, now it works. But I have to delete Sanchi (?) as well. With him it doesn't work.

                        [http://www.ia-plus.de(http://www.ia-plus.de)]

                        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