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][$] S4u_Transformer

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

      Hi
      Now,the update is free.
      Mail to me if you purchased it.

      Suforyou
      http://www.sketchupforyou.com

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

        Hdpv, Say I have multiple components, some of them have scale -1 (=mirrored) on some axis, some do not. Is there way to take onlythose with scale -1 and flip it to 1?
        Thank you

        1 條回覆 最後回覆 回覆 引用 0
        • hdpvH 離線
          hdpv
          最後由 編輯

          Hi rv1974!
          s4u Transformer can't do it.
          You try this code:
          sel=Sketchup.active_model.selection
          axis=[0,5,10]
          s=sel.group_by{|e| e.transformation.to_a[axis.z]>0}.values[0] # you can change axis.x or axis.y
          sel.clear
          sel.add s

          Suforyou
          http://www.sketchupforyou.com

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

            Hdpv thanks for reply!
            I tried the code- nothing happens. what am I doing wrong?

            Error: #<TypeError: wrong argument type (expected Sketchup::Entity or Array of Sketchup::Entity)>
            <main>:4:in add' <main>:4:in <main>'
            SketchUp:1:in `eval'


            GIF 04-11-2019 10-54-58.gif

            1 條回覆 最後回覆 回覆 引用 0
            • hdpvH 離線
              hdpv
              最後由 編輯

              First,You select all components.

              Suforyou
              http://www.sketchupforyou.com

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

                IDK I select all and ... no magic happens
                Sometimes I have no reply in Ruby console, sometimes diffrent errors.
                In any case nothing flips to original

                sel=Sketchup.active_model.selection
                axis=[0,5,10]
                s=sel.group_by{|e| e.transformation.to_a[axis.z]>0}.values[0] # you can change axis.x or axis.y
                sel.clear
                sel.add s
                Error: #<TypeError: wrong argument type (expected Sketchup::Entity or Array of Sketchup::Entity)>
                <main>:4:in add' <main>:4:in <main>'
                SketchUp:1:in `eval'

                or

                Error: #<TypeError: wrong argument type (expected Sketchup::Entity or Array of Sketchup::Entity)>
                <main>:4:in add' <main>:4:in <main>'
                SketchUp:1:in eval' Error: #<SyntaxError: <main>: syntax error, unexpected ':', expecting end-of-input Error: #<TypeError: wrong argument ... ^> SketchUp:1:in eval'


                GIF 05-11-2019 15-46-56.gif


                axes.skp

                1 條回覆 最後回覆 回覆 引用 0
                • hdpvH 離線
                  hdpv
                  最後由 編輯

                  Hi
                  You change axis.z to axis.x
                  sel=Sketchup.active_model.selection
                  axis=[0,5,10]
                  s=sel.group_by{|e| e.transformation.to_a[axis.x]>0}.values[0] # you can change axis.x or axis.y
                  sel.clear
                  sel.add s
                  After,you use s4uTransformer with center origin and ratio scale x_axis: -1

                  Suforyou
                  http://www.sketchupforyou.com

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

                    😮 Wow! You are my hero! You see 3ds Max hates negative scale entities and it causes huge PITA.
                    May I humbly ask you to shape it as .rb?
                    And if you could merge with 'Reset Transformer' as one new script it'd be amazing.
                    Many thanks for assistance.

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

                    Advertisement