sketchucation logo sketchucation
    • 登入
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] Export 2d with Alpha

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

      Overview
      Exports the current view with transparent background option (SU8) if you use the PNG format. Will also let you export only what is displayed on your screen - where SketchUp's native Export 2D function would export the whole model, regardless.

      Access
      View > Export 2D

      Usage
      TT_Export2d.png

      ExportSaveAs.png

      Export with transparency also works under Windows.

      Requirements

      • SketchUp 7 or newer - ( Other versions untested )
      • TT_Lib2

      Link Preview Image
      SketchUp Plugins | PluginStore | SketchUcation

      SketchUp Plugin and Extension Store by SketchUcation provides free downloads of hundreds of SketchUp extensions and plugins

      favicon

      (sketchucation.com)

      Footprint

      http://forums.sketchucation.com/download/file.php?id=53762
      <Sketchup>/Plugins/
      +-
      http://forums.sketchucation.com/download/file.php?id=53763
      tt_export.rb

      http://forums.sketchucation.com/download/file.php?id=53761

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

      1 條回覆 最後回覆 回覆 引用 0
      • B 離線
        Ben Ritter
        最後由 編輯

        Thomas, thank you once again and happy Monday.

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

          Thanks, but I'm curious...how does it work?
          Was transparency there all along but the built in exporter couldn't handle it?
          😕

          1 條回覆 最後回覆 回覆 引用 0
          • JClementsJ 離線
            JClements
            最後由 編輯

            Thomas, this is great. I use the transparent PNG format for most all of my work so I can do compositing.

            A few weeks ago I had to make a 4' x 3' poster. Layout couldn't export the PNG because, I think because of the all the textures I had combined with the anti-aliasing of LayOut's export filter). My old workaround was to make all layers Black and then turn on color by layer to produce a black and white mask for an Alpha Channel but that doesn't work with textures that are comprised of transparent PNGs. Hopefully, this script will address these type of textures.

            This could be script my workaround for transparent PNG's. I will give it a test.

            Thank you !

            [Edit] P.S. I am going to change the name, however, to "tt_eportPNG.rb" ... incase you come up with some other export options

            John | Illustrator | Beaverton, Oregon

            1 條回覆 最後回覆 回覆 引用 0
            • JClementsJ 離線
              JClements
              最後由 編輯

              Thomas, so far so good. I exported a 4,000 x 2,000 pix file no problem. I haven't tried using sketchy edge styles with it yet.

              Q- Would it be possible to read the aspect ratio of the users model window and give that as an option in your dropdown list?

              If you'd like a model to do tests with I can arrange to send one that could push the script to it's limits. Let me know.

              John | Illustrator | Beaverton, Oregon

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

                @pixero said:

                Was transparency there all along but the built in exporter couldn't handle it?

                Added with the SU8 API.

                @jclements said:

                Q- Would it be possible to read the aspect ratio of the users model window and give that as an option in your dropdown list?

                I can read the aspect ratio - but I can't make the values in the inputbox interactively change. I'd have to make a webdialog for that.

                @jclements said:

                If you'd like a model to do tests with I can arrange to send one that could push the script to it's limits. Let me know.

                I really have no control over what it can export. It simply calls the SU API: view.write_image - so I'm not doing anything different from what SU does - because it's all SU.

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

                1 條回覆 最後回覆 回覆 引用 0
                • CadFatherC 離線
                  CadFather
                  最後由 編輯

                  Master Thom Thom strikes again! 😲 (a true gem)

                  now i know why the name: it's two of you!! thank you, thank you

                  1 條回覆 最後回覆 回覆 引用 0
                  • JClementsJ 離線
                    JClements
                    最後由 編輯

                    Thomas, if you could just display the aspect ratio that would be helpful. I could manually enter values using a calculator.

                    John

                    John | Illustrator | Beaverton, Oregon

                    1 條回覆 最後回覆 回覆 引用 0
                    • EscapeArtistE 離線
                      EscapeArtist
                      最後由 編輯

                      Great! I needed something like this last week, how did you know?

                      Thanks for another useful plugin! 👍

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

                        @jclements said:

                        Thomas, if you could just display the aspect ratio that would be helpful. I could manually enter values using a calculator.

                        John

                        I'll see what I can do. I am currently working on a system to make advanced inputboxes easier to make.

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

                        1 條回覆 最後回覆 回覆 引用 0
                        • JClementsJ 離線
                          JClements
                          最後由 編輯

                          Thomas. Not urgent by any means.

                          John | Illustrator | Beaverton, Oregon

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

                            @thomthom said:

                            •SketchUp 7 or newer

                            @thomthom said:

                            Added with the SU8 API.

                            So...how do I get this to work with SU 7.1?
                            It exports without transparency and always the whole model.

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

                              @pixero said:

                              So...how do I get this to work with SU 7.1?
                              Transparency? You can't.

                              @pixero said:

                              and always the whole model.

                              hmm, not on my machine - remember to Hide Rest of Model. WYSIWYG.

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

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

                                Is there some way to separate shadows pass?

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

                                  @thomthom said:

                                  @pixero said:

                                  So...how do I get this to work with SU 7.1?

                                  @thomthom said:

                                  Transparency? You can't.

                                  😢

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

                                    No - I have no control of how it's generated. As you see from the sample I posted the shadows even comes from the whole model, not just what is visible.

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

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

                                      @thomthom said:

                                      No - I have no control of how it's generated. As you see from the sample I posted the shadows even comes from the whole model, not just what is visible.

                                      This can help for a shadow pass: http://rhin.crai.archi.fr/RubyLibraryDepot/download.php?file=displaytemplate.rb

                                      And maybe a modification of my Shadow control script (http://www.pixero.com/downloads_sketchup.html) could be made to set everything not selected to: e.casts_shadows = false

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • A 離線
                                        archworks
                                        最後由 編輯

                                        Congratulations - one of the best for su 2d app

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

                                          Hey, I did not see this, great plugin, thanks Thom! 👍 👍 👍


                                          Edit; to me, it does not export with transparent background... Nor does it export only the active context. 😞

                                          test.png

                                          Gai...

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

                                            @gaieus said:

                                            Edit; to me, it does not export with transparent background... Nor does it export only the active context. 😞

                                            What version of SU did you use?
                                            Got a screencapture?

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

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

                                            Advertisement