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!
    🔌 Smart Spline | Fluid way to handle splines for furniture design and complex structures. Download

    [Plugin] TextureSwapper v1.1 20111112

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

      Yes, the names must be the same - but if you rename a completely different image-file in the IN folder with the original name it'll replace OK on 'IN'. The only caveat is that the 'aspect-ratio' of the image's w/h should be equivalent - unless of course you want distorted results...

      TIG

      1 條回覆 最後回覆 回覆 引用 0
      • McGyverM 離線
        McGyver
        最後由 編輯

        Thank you! This should come in hand with some older models that I wanted to retexture! Thanks again TIG and CadFather for this plugin!

        Visit My ShareCG Freebie Gallery

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

          Hi TIG,
          Love this plugin - fantastic! Ive had a play with it on a couple of files and mostly have had perfect results. However there is a file that Ive run this on where not all of the textures are exported? After Ive run the plugin it says its exported 51 textures but there are only 33 in the folder? Do you have any idea why this would happen?
          Thanks
          Sam

          SU Pro 2016
          Dell Precision M4800
          PC Windows 10
          Intel Core i7-4900MQ @ 2.80ghz
          Nvidia Quadro K2100M
          16gb RAM

          1 條回覆 最後回覆 回覆 引用 0
          • TIGT 離線
            TIG Moderator
            最後由 編輯

            If some of your Materials use the exact same name for their texture-file you will get fewer .jpg/.png files exported than Materials processed.
            For example, you might have 3 'glass-brick' materials that all happen to use 'glass_brick123.png', so there will be more materials processed than texture files made.
            It should affect the result as when each Material's texture file is added back the same file can get reused by several materials.
            It's quite possible that the one texture-file is used in several Materials - for example you might have the texture set to use different sizes in different Materials, or apply a 'color' over it or even have different transparency settings...
            However, if the 3 glass-brick materials are exactly the same in all respects, then tools lie=ke MaterialConsolidator will reduce the Materials list back to have used just one - so if so then use that before using this tool...
            The worst result is if you have three materials using a texture with the same name that's actually completely different! But that's housekeeping and commonsense. So never use non-specific texture names like 'texture1.png' as somewhere along the line they'll be another material using a texture with that name that's not remotely similar 😒

            TIG

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

              Hi TIG,
              Thanks for coming back. Totally understand about not using the same names and that materials that use the same map wont export different maps. Ive opened several of the materials whose maps don't export using the plugin. If I go to open them in photoshop through the material palet it opens the temp folder and the files have the following names:

              C/\Users\CHRIS~1.GWY\AppData\Local\Temp\txjv9jiw.jpg
              C/\Users\chris.gwyther\Desktop\Breakthrough book cover.jpg
              S/\Level 3\Design Team\Design Reference\3D\Models\Furniture\Espresso Machine LaCimbali\1B Model Library\Library Built by Ryan\Equipment\lcd-display-screen.jpg

              Not sure why it has that name but its appears to be the address that the original material is stored or first used? We work on a network and work on both Mac and PC (which seems to add some issues). Could the file name be too long to save? Ive tried saving it to my (mac) desktop but still no joy. Do you think this is resolvable or is this just another PC / Mac issue.
              Any ideas? Thanks again.

              Sam

              SU Pro 2016
              Dell Precision M4800
              PC Windows 10
              Intel Core i7-4900MQ @ 2.80ghz
              Nvidia Quadro K2100M
              16gb RAM

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

                Just tried re-saving a couple of files on the mac from photoshop and get an error message telling me that the file name isn't valid so I know why they wont save now using TextureSwapper but do you know if there's any way around this in terms of how the materials are created? Im guessing the answer is probably no, as Im sure its something thats written into SU. It seems that any materials that have been created on mac dont have this massive long name, but the PC ones do. Hope you can help . . .

                SU Pro 2016
                Dell Precision M4800
                PC Windows 10
                Intel Core i7-4900MQ @ 2.80ghz
                Nvidia Quadro K2100M
                16gb RAM

                1 條回覆 最後回覆 回覆 引用 0
                • TIGT 離線
                  TIG Moderator
                  最後由 編輯

                  If you edit a texture it gets saved to a temp folder, depending on your OS...
                  However, if you export textures using this tool the file name is kept and the file goes into the common folder ?? 😕

                  TIG

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

                    rrrr.jpgqqq.jpghello Tig
                    First off all thank you for all the great tools
                    i try to make my textures smaller with the software Jpgmini and texture swapper
                    but my snapshots have after this all the same texture ?
                    Texture names are unik the model is 90 mb
                    The jpegmini software works well but the import see only the first snapshot ?

                    Thanks for helb

                    See below wath swapper make with my Map 😕

                    1 條回覆 最後回覆 回覆 引用 0
                    • TIGT 離線
                      TIG Moderator
                      最後由 編輯

                      @schnydix

                      I am not exactly clear what your problem is...

                      Have you tried Fixing issues under Model Info > Statistics ?
                      Have you tried Purging under the same option?

                      Do the various materials have 'simple names' ?
                      Are these names 'related' etc...
                      What is the connection between the failing ones ?
                      etc

                      TIG

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

                        Hello Tig
                        Fast service here
                        You see the 1 picture with a lot of grass the 2 picture shows only one forest texture over all
                        The material are google earth snapshots they are groups
                        the names are Google Earth Snapshot#66
                        some materials have a hidden line between

                        Thanks for help

                        1 條回覆 最後回覆 回覆 引用 0
                        • TIGT 離線
                          TIG Moderator
                          最後由 編輯

                          Were some of the 'gray' roofs etc in the original, using the default-material ?
                          Which is now taking a textured material ?

                          I am still unclear about what you are swapping with what...

                          Does giving these default-material faces a real color help ?

                          TIG

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

                            Hello Tig
                            I try to have the same textures like in picture 1
                            I use the Swapper only to make the picture folder smaller
                            The Software Jpegmini compress the 90 MB to an 29 Mb i save 70 Mb in the model.
                            The Material size and resolution are the same like bevor.
                            I Think the proplem is the name i have to rename all.
                            I Will report you the result in some days Thanks for all at the moment
                            esense3d

                            1 條回覆 最後回覆 回覆 引用 0
                            • FlatchoumF 離線
                              Flatchoum
                              最後由 編輯

                              Hi,
                              Is there a chance This Plugin doesn´t work any more in sketchup 2018?
                              I can´t start it any more. Thank you for your help, Best,

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

                                There have been changes to the Ruby version used by SketchUp since the last release of this extension, so I'd say there is more than a fair chance that it won't function as expected.

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

                                1 條回覆 最後回覆 回覆 引用 0
                                • TIGT 離線
                                  TIG Moderator
                                  最後由 編輯

                                  Works fine for me in v2018/v2019, but remember it is 8 years old is somewhat clunky !
                                  Install from the PluginStore's RBZ...
                                  https://sketchucation.com/pluginstore?pln=TextureSwapper

                                  It's not 'signed', so your Extension Loading Policy needs to be set to 'Unrestricted'.

                                  Its Toolbar might need to be activated to be able to click-to-run...

                                  Here's a synopsis of how it works...

                                  Your model contains textured materials.

                                  You run the 'OUT' option.
                                  Everything is written to your a subfolder in your default user's folder - that is typically your 'Documents' folder.
                                  A subfolder is made named thus "/ModelName_TexturesOUT".
                                  The 'OUT'put.
                                  If now contains all of those materials' textures' image-files, saved using their files extension - e.g. "Bricks.jpg".

                                  If you want to reuse modified versions of these textures in your model, copy them into a subfolder in the same parent folder, named say "/ModelName_TexturesIN" subfolder.
                                  You can now edit any of those image-files, retaining their names.
                                  Alternatively overwrite an image-file using another image, keeping the exact same name [note it is case-sensitive].

                                  Now you can use the 'IN' option.
                                  All image-files in the "/ModelName_TexturesIN" subfolder are analyzed.
                                  If your model 'ModelName' contains a material using any of the textures named in that folder [note it is case-sensitive and the image-file must be the same 'type' - e.g. .JPG or .PNG], then that material's texture is replaced by the current equivalent in the "/ModelName_TexturesIN" subfolder.

                                  So reasons for it to fail are the IN file isn't made.
                                  There are mismatches in the image-file names between the OUT / IN subfolders.
                                  The IN images' file-types don't match the textures' names in the materials' definitions.
                                  Also note the exact destination of these folders; the default folder is set up in our preferences, but some plugins might interfere with that.
                                  So to check what it is, use this in the Ruby Consul:
                                  Dir.pwd + <enter>

                                  TIG

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • FlatchoumF 離線
                                    Flatchoum
                                    最後由 編輯

                                    HI, today I was able to reinstall the textureswapper, I don´t know why I succedded, but now it works.
                                    Sorry, this is not very helpfull to learn about the issue I encountered.Best,

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

                                    Advertisement