sketchucation logo sketchucation
    • 登入
    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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    Unfold.rb script: useful for UV-mapping?

    已排程 已置頂 已鎖定 已移動 Developers' Forum
    61 貼文 23 Posters 15.4k 瀏覽 23 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • S 離線
      sorgesu
      最後由 編輯

      okay, I found a ruby script on Didier's site: Global material changer.
      It is almost doing exactly what I want. It replaces any one or "ALL" of a the materials on an model/component. But your choices for replacing are only with a single default material or something from the existing list. So how difficult to modify this so that you can replace with a material set that has some built in- one to one relationship to the existing materials? Maybe same name with a numeric modifier?

      Susan Sorger
      Former Seller Hand Rendered Entourage
      Former Canadian Authorized Training Centre, SketchUp

      1 條回覆 最後回覆 回覆 引用 0
      • K 離線
        kwistenbiebel
        最後由 編輯

        @sorgesu said:

        Because I just recently became interested in this subject, I found this on a search and I'm resurrecting.

        Further to the above speculations, I was thinking it would be great to be able to substitute a whole group of textures that are mapped to the subcomponents of a model,such as a person or a car for instance. That way, instead of providing the person or car in various colour verisons as an skp, all you need to do is substitute a material library on an existing model. If one must create a new skp for the same model, in a different colour, or maybe with some different detailing, when you create the variations you would have to go through mapping all the compoenets one by one again on the same model. Having a swap feature for the material "set" would be great.

        Swapping is already possible, even with uv-sets in place (as long as the new bitmap has the same image size as the old one.)
        Write down the dimensions of the existing texture (the dimensions specified in the material editor).
        Then do the substitution from within the 'Entity layer' (NOT from material editor).
        Next thing to do is going to the material editor and change the dimensions to the ones you wrote down.
        It's tedious but it works.

        1 條回覆 最後回覆 回覆 引用 0
        • S 離線
          sorgesu
          最後由 編輯

          NO swapping is not currently passible for ane entire "group" of materials all at once, which is what I was requsting.

          Say I have a car component and it has 17 materials assigned to different portions of the car. I want those 17 materials defined as a "set" and I want another set containing a different 17 to be swapped in in one go.

          Susan Sorger
          Former Seller Hand Rendered Entourage
          Former Canadian Authorized Training Centre, SketchUp

          1 條回覆 最後回覆 回覆 引用 0
          • K 離線
            kwistenbiebel
            最後由 編輯

            Indeed: No for groups of materials, Yes for ungrouped meshes containing 1 material.

            1 條回覆 最後回覆 回覆 引用 0
            • R 離線
              RickW
              最後由 編輯

              Susan,

              I'm working on it. 😄

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

              1 條回覆 最後回覆 回覆 引用 0
              • S 離線
                sorgesu
                最後由 編輯

                OMG that's amazing. Thanl's a heap!!!

                Susan Sorger
                Former Seller Hand Rendered Entourage
                Former Canadian Authorized Training Centre, SketchUp

                1 條回覆 最後回覆 回覆 引用 0
                • P 離線
                  Phil Rader AIA
                  最後由 編輯

                  Rick can you get your 4 month old to help out with ruby coding and expedite the process..

                  http://www.philrader.com

                  1 條回覆 最後回覆 回覆 引用 0
                  • jujuJ 離線
                    juju
                    最後由 編輯

                    @unknownuser said:

                    Rick can you get your 4 month old to help out with ruby coding and expedite the process..

                    Now now Phil, all good things come to those who wait.

                    Save the Earth, it's the only planet with chocolate.

                    1 條回覆 最後回覆 回覆 引用 0
                    • L 離線
                      linea
                      最後由 編輯

                      Very interesting thread!!! I have some physical models I need to build for an exhibition, so this would be very useful but I can't get the unfold script to work on Vista, any ideas?

                      @unknownuser said:

                      Blender has the capability you are requesting, KB. Neatest part is where you can actually use painting tools on the unfolded map and then see them applied in the rendered viewport.

                      I haven't used it in a while, but now that I've been given a little project with a certain degree carte blanche I was planning on testing all kinds of integrations with SU, Blender, and more obscure programs.

                      Lewis,

                      Please could you let us know how this goes, I have generally found Blender to work very well with SU imports/exports.

                      1 條回覆 最後回覆 回覆 引用 0
                      • RichardR 離線
                        Richard
                        最後由 編輯

                        @unknownuser said:

                        Very interesting thread!!! I have some physical models I need to build for an exhibition, so this would be very useful but I can't get the unfold script to work on Vista, any ideas?

                        mate youi could do a search on the net for paper arch models. I know once there was a thread on the PPB about these and there was a link to an application that could output a flat plan unfold to produce a paper model from digital models....

                        [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

                        1 條回覆 最後回覆 回覆 引用 0
                        • jenujacobJ 離線
                          jenujacob
                          最後由 編輯

                          @richard said:

                          @unknownuser said:

                          Very interesting thread!!! I have some physical models I need to build for an exhibition, so this would be very useful but I can't get the unfold script to work on Vista, any ideas?

                          mate youi could do a search on the net for paper arch models. I know once there was a thread on the PPB about these and there was a link to an application that could output a flat plan unfold to produce a paper model from digital models....

                          that would be Pepakura i suppose???
                          http://www.tamasoft.co.jp/pepakura-en/

                          1 條回覆 最後回覆 回覆 引用 0
                          • RichardR 離線
                            Richard
                            最後由 編輯

                            Thats the one mate!!!!

                            [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

                            1 條回覆 最後回覆 回覆 引用 0
                            • L 離線
                              linea
                              最後由 編輯

                              Yes I have the free version of Pepakura and it's not bad, I made a fairly good Gherkin model with it("gherkin" is the nickname of a building in London called St Mary's Axe). But on more complicated geometry it doesn't do as well.

                              1 條回覆 最後回覆 回覆 引用 0
                              • romboutR 離線
                                rombout
                                最後由 編輯

                                @solo said:

                                Make a cone shape and then project the texture attached below to the cone from above view, notice it will map the shape of the cone perfectly without distortion.

                                How did you do this trick, with PS think but how did came up with the idea.
                                Ive got this mapping problem with this mesh. also trying to learn blender right know so i can use the UVmapping abbility


                                Afbeelding 45.png

                                1 條回覆 最後回覆 回覆 引用 0
                                • GaieusG 離線
                                  Gaieus
                                  最後由 編輯

                                  Hi Rombout,

                                  See this post in the other topic you posted the same problem.

                                  Gai...

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • RichardR 離線
                                    Richard
                                    最後由 編輯

                                    Bump, bump bump!!

                                    [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • J 離線
                                      Jim
                                      最後由 編輯

                                      I added preliminary support for refolding to my unfold tool.

                                      Maybe someone would like to try it?

                                      Download tip.zip from bitcucket.

                                      You can undo and redo the refold, but activating the Tool wipes out the history.

                                      I am not going to ty tyo make it work inside Groups or Components this day. Just works on loose geometry at the moment.

                                      Hi

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • X 離線
                                        xrok1
                                        最後由 編輯

                                        @jim said:

                                        I added preliminary support for refolding to my unfold tool.

                                        Maybe someone would like to try it?

                                        Download tip.zip from bitcucket.

                                        You can undo and redo the refold, but activating the Tool wipes out the history.

                                        ❓

                                        “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 條回覆 最後回覆 回覆 引用 0
                                        • RichardR 離線
                                          Richard
                                          最後由 編輯

                                          Wow thanks jim! I'll take it for a run!

                                          I guess the simplest (considering your earlier point about not understanding UV mapping), would be that possibly a temp file be created that records the unfold steps and recalls them in reverse after the user has painted a map to the unfolded geometry!

                                          Cheers mate! Richard

                                          [BUILTBRAND.COM.AU](http://builtbrand.com.au/)

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • J 離線
                                            Jim
                                            最後由 編輯

                                            Yeah, that's about it - it's all in-memory but a temp file is an option. It could become quite complex if I need to allow for interrupted unfolding (if that makes sense.)

                                            As I said, you will probably only get one go at it because re-activating the Unfold tool wipes out the history.

                                            Let me know how it goes.

                                            Hi

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement