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

    [req] unique texture

    Scheduled Pinned Locked Moved Plugins
    15 Posts 5 Posters 2.6k 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.
    • X Offline
      xrok1
      last edited by

      would anyone be able to do a script that would allow "Make Unique Texture" to be applied to multiple faces at once?

      this could be very handy and time saving when working with photomatch...

      “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

      http://www.Twilightrender.com try it!

      1 Reply Last reply Reply Quote 0
      • E Offline
        Ecuadorian
        last edited by

        Thomthom said the API didn't provide this function, but if the user sets a shortcut for this function (or any function for that matter) the API can trigger this shortcut. So perhaps you could change your Ruby request to:

        "Repeat shortcut over multiple faces"

        ...or something like that.

        -Miguel Lescano
        Subscribe to my house plans YouTube channel! (30K+ subs)

        1 Reply Last reply Reply Quote 0
        • X Offline
          xrok1
          last edited by

          or step through selection 😉

          whatever you call it, i'd call it handy!

          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

          http://www.Twilightrender.com try it!

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            Thom's done more with materials than myself, but it seems like there might be some way to not do a simple .make_unique, but perhaps create a new texture from the existing. It seem slike it would require finding the original image, make a new material that uses the original image as the texture, then apply the new material to the face, using the previous UV coordinates.

            Is all of that possible?

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • X Offline
              xrok1
              last edited by

              @unknownuser said:

              but perhaps create a new texture from the existing

              isn't that what make unique does?

              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

              http://www.Twilightrender.com try it!

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                That's what I'm curious about. There is no existing "make unique" method. So you can't single out a face, find its material and tell it to be unique.

                But you absolutely can find a face, find its material, find the path to that material. Then make a new material and assign the image to the new material. Perhaps the actual image would need to be copied as a separate file though. I just don't know. I think Thom might be out of town right now too. Mqabe someone else has some time to test this stuff out.

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • X Offline
                  xrok1
                  last edited by

                  well if someone does crack the case it would be nice to be able to do the same (multiple faces) with projected texture as well 😉

                  “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                  http://www.Twilightrender.com try it!

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

                    If I get this right you want a new method material.make_unique ?
                    If so I have something...

                    material-make_unique.rb adds a new Method to Sketchup's Material Class -
                    material.make_unique
                    It makes a clone of the material from the original and gives it a
                    new name, incrementing the 'name' with #n at the end.
                    Returns a unique new material.
                    material-make_unique.rb

                    Example of use...

                    make material of selected faces unique

                    type makefacesmaterialsunique in the Ruby Console

                    No UV mapping yet...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • GaieusG Offline
                      Gaieus
                      last edited by

                      The native make unique function doesn't simply makes a new material based on the one applied to a face but also

                      • crops the image on the face boundaries
                      • if it is a "tiling" image (more instances applied on a face obviously), it will "unite" those images into the unique image

                      Gai...

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

                        @gaieus said:

                        The native make unique function doesn't simply makes a new material based on the one applied to a face but also

                        • crops the image on the face boundaries
                        • if it is a "tiling" image (more instances applied on a face obviously), it will "unite" those images into the unique image

                        I know... This was just a quick first attempt... The UV and size/merged images need work... 😒

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xrok1
                          last edited by

                          great progress! keep going 😄
                          are you going to throw the projected option in there too?? 😍

                          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                          http://www.Twilightrender.com try it!

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by

                            @tig said:

                            I know... This was just a quick first attempt... The UV and size/merged images need work... 😒

                            OK-OK, I wasn't going to "lesson" you (I was sure you know 😉 ) just mentioned to make it obvious for all.

                            Anyway, I think that the improved texturing tools in SU 7 are still undervalued by many.

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • X Offline
                              xrok1
                              last edited by

                              any progress? 😛

                              “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                              http://www.Twilightrender.com try it!

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

                                Sorry... it's at the end of a long list 😞 If anyone else wants to chip in pleased do...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • X Offline
                                  xrok1
                                  last edited by

                                  TIG, thanks for considering it and best luck with all your other projects. 😄

                                  “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                                  http://www.Twilightrender.com try it!

                                  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