• Login
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
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 4 Sept 2009, 01:23

    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 4 Sept 2009, 01:36

      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 4 Sept 2009, 01:44

        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
        • C Offline
          Chris Fullmer
          last edited by 4 Sept 2009, 02:31

          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 4 Sept 2009, 03:15

            @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
            • C Offline
              Chris Fullmer
              last edited by 4 Sept 2009, 03:23

              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 4 Sept 2009, 03:30

                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
                • T Offline
                  TIG Moderator
                  last edited by 4 Sept 2009, 09:55

                  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
                  • G Offline
                    Gaieus
                    last edited by 4 Sept 2009, 13:12

                    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
                    • T Offline
                      TIG Moderator
                      last edited by 4 Sept 2009, 16:32

                      @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 4 Sept 2009, 23:19

                        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
                        • G Offline
                          Gaieus
                          last edited by 5 Sept 2009, 12:34

                          @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 9 Sept 2009, 23:00

                            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
                            • T Offline
                              TIG Moderator
                              last edited by 9 Sept 2009, 23:05

                              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 9 Sept 2009, 23:25

                                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
                                1 / 1
                                • First post
                                  3/15
                                  Last post
                                Buy SketchPlus
                                Buy SUbD
                                Buy WrapR
                                Buy eBook
                                Buy Modelur
                                Buy Vertex Tools
                                Buy SketchCuisine
                                Buy FormFonts

                                Advertisement