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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [Plugin] UV Toolkit

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

      I think what you need to do is sample four points in a quadratic formation of the face's plane and then shift the 3Dpoints.

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 條回覆 最後回覆 回覆 引用 0
      • thomthomT 離線
        thomthom
        最後由 編輯

        @pixero said:

        First, an option to keep the scale of a texture when rotating.

        That's a mighty small image there... can't see much what's going on.

        The rotate feature is meant for textures stretched to fit quad-faces. Special purpose rotate. SU already got rotate methods built in - When you activate SU's texture gizmo - you have a Rotate sub-menu.

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 條回覆 最後回覆 回覆 引用 0
        • PixeroP 離線
          Pixero
          最後由 編輯

          Here's my two requests for a great tool:

          First, an option to keep the scale of a texture when rotating.

          http://imagecloset.com/28/a429772e52af5cc3266b8d5eb74ce6f3/UVrotate.jpg

          Second, add it to the right click menu for easier access.

          Edit: Fixed the image size. 😒

          1 條回覆 最後回覆 回覆 引用 0
          • PixeroP 離線
            Pixero
            最後由 編輯

            Still its great to be able to select a bunch of faces and rotate at the same time.
            You cant do that with SU's build in tools can you?

            1 條回覆 最後回覆 回覆 引用 0
            • thomthomT 離線
              thomthom
              最後由 編輯

              @pixero said:

              Still its great to be able to select a bunch of faces and rotate at the same time.
              You cant do that with SU's build in tools can you?

              No you can't. Good point. I could add that feature. 👍

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 條回覆 最後回覆 回覆 引用 0
              • PixeroP 離線
                Pixero
                最後由 編輯

                I'm using it to rotate the texture on leaves on trees so doing it manually isn't an option. 😉

                And don't forget the right click menu...

                1 條回覆 最後回覆 回覆 引用 0
                • thomthomT 離線
                  thomthom
                  最後由 編輯

                  Only thing though, about which points should it rotate...?

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 條回覆 最後回覆 回覆 引用 0
                  • PixeroP 離線
                    Pixero
                    最後由 編輯

                    Can't you just swap the UV "scale"?
                    I mean like it is now but with an option to keep the scale on the X and Y axis.
                    (Rotating the points so that Points A,B,C,D would be D,A,B,C or something like that.)

                    1 條回覆 最後回覆 回覆 引用 0
                    • thomthomT 離線
                      thomthom
                      最後由 編輯

                      There is no such fixed points. The one for the quad-faces works like that because you can use the four vertices of the face. But you can't do that when you have differently shaped faces and/or want to preserve scale.

                      With SU, you have to generate the set of points yourself and query the face. So when rotating, I need one anchor point.

                      Thomas Thomassen — SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 條回覆 最後回覆 回覆 引用 0
                      • thomthomT 離線
                        thomthom
                        最後由 編輯

                        hm... or maybe it won't be a problem.... hmm

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 條回覆 最後回覆 回覆 引用 0
                        • PixeroP 離線
                          Pixero
                          最後由 編輯

                          Ok, what would you suggest.
                          Center of face? Or a window where you can choose like in Profile Builder?

                          http://i.imagehost.org/0489/menu.jpg

                          1 條回覆 最後回覆 回覆 引用 0
                          • thomthomT 離線
                            thomthom
                            最後由 編輯

                            centerofface.png
                            That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 條回覆 最後回覆 回覆 引用 0
                            • PixeroP 離線
                              Pixero
                              最後由 編輯

                              Center of bounding box maybe?

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

                                @thomthom said:

                                [attachment=0:3sro2dfg]<!-- ia0 -->centerofface.png<!-- ia0 -->[/attachment:3sro2dfg]
                                That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                                What kind of a quad is that, Thom?
                                😲

                                Gai...

                                1 條回覆 最後回覆 回覆 引用 0
                                • thomthomT 離線
                                  thomthom
                                  最後由 編輯

                                  😄 The exotic kind. 😉

                                  My point was - that when you don't deal with regular quad-faces - it's much harder to predict desired result.

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • thomthomT 離線
                                    thomthom
                                    最後由 編輯

                                    The thing is - would picking the "centre" (however it's defined) be any different, as just picking the first vertex I can get? At all seem rather arbitrary in terms of the result.

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • thomthomT 離線
                                      thomthom
                                      最後由 編輯

                                      @pixero said:

                                      Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                                      Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                                      Am I making myself clear? 😕

                                      Are we talking about rotating on quads strictly? I was under the impression this would be a general purpose rotation.

                                      Thomas Thomassen — SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • PixeroP 離線
                                        Pixero
                                        最後由 編輯

                                        Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                                        Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                                        Am I making myself clear? 😕


                                        dir.jpg

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • thomthomT 離線
                                          thomthom
                                          最後由 編輯

                                          @pixero said:

                                          Would it be possible to have an option for it to automagicly recognise the lenght direction based on witch side is longest on a quad and rotate it to match that.
                                          Like if I want to rotate some UVs on a branch to line up the texture with the trees branches length direction. Would be cool.
                                          Am I making myself clear? 😕

                                          Can you show a little screenshot of your starting point and your desired result?

                                          Thomas Thomassen — SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

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

                                            @thomthom said:

                                            That's the thing: what would you determine as centre of face for something like this? (or top,left,right,etc...)

                                            There's a 'Center of Gravity' script somewhere - 'centroid.rb' - by TBD that adds a cpoint at the CoG of a face.
                                            I can't find it so here it is againcentroid.rb

                                            TIG

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

                                            Advertisement