• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] Export 2d with Alpha

Scheduled Pinned Locked Moved Plugins
148 Posts 42 Posters 117.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    Ben Ritter
    last edited by 13 Sept 2010, 18:35

    Thomas, thank you once again and happy Monday.

    1 Reply Last reply Reply Quote 0
    • P Offline
      Pixero
      last edited by 13 Sept 2010, 19:55

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

      1 Reply Last reply Reply Quote 0
      • J Offline
        JClements
        last edited by 13 Sept 2010, 20:00

        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 Reply Last reply Reply Quote 0
        • J Offline
          JClements
          last edited by 13 Sept 2010, 20:35

          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 Reply Last reply Reply Quote 0
          • T Offline
            thomthom
            last edited by 13 Sept 2010, 20:51

            @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 Reply Last reply Reply Quote 0
            • C Offline
              CadFather
              last edited by 13 Sept 2010, 21:10

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

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

              1 Reply Last reply Reply Quote 0
              • J Offline
                JClements
                last edited by 13 Sept 2010, 21:16

                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 Reply Last reply Reply Quote 0
                • E Offline
                  EscapeArtist
                  last edited by 13 Sept 2010, 21:29

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

                  Thanks for another useful plugin! πŸ‘

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    thomthom
                    last edited by 13 Sept 2010, 21:33

                    @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 Reply Last reply Reply Quote 0
                    • J Offline
                      JClements
                      last edited by 13 Sept 2010, 22:05

                      Thomas. Not urgent by any means.

                      John | Illustrator | Beaverton, Oregon

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        Pixero
                        last edited by 14 Sept 2010, 06:21

                        @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 Reply Last reply Reply Quote 0
                        • T Offline
                          thomthom
                          last edited by 14 Sept 2010, 06:26

                          @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 Reply Last reply Reply Quote 0
                          • R Offline
                            rv1974
                            last edited by 14 Sept 2010, 08:19

                            Is there some way to separate shadows pass?

                            1 Reply Last reply Reply Quote 0
                            • P Offline
                              Pixero
                              last edited by 14 Sept 2010, 08:46

                              @thomthom said:

                              @pixero said:

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

                              @thomthom said:

                              Transparency? You can't.

                              😒

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                thomthom
                                last edited by 14 Sept 2010, 08:46

                                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 Reply Last reply Reply Quote 0
                                • P Offline
                                  Pixero
                                  last edited by 14 Sept 2010, 09:41

                                  @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 Reply Last reply Reply Quote 0
                                  • A Offline
                                    archworks
                                    last edited by 24 Nov 2010, 14:25

                                    Congratulations - one of the best for su 2d app

                                    1 Reply Last reply Reply Quote 0
                                    • GaieusG Offline
                                      Gaieus
                                      last edited by 24 Nov 2010, 15:33

                                      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 Reply Last reply Reply Quote 0
                                      • T Offline
                                        thomthom
                                        last edited by 24 Nov 2010, 17:04

                                        @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 Reply Last reply Reply Quote 0
                                        • HumpmetwiceH Offline
                                          Humpmetwice
                                          last edited by 24 Nov 2010, 17:34

                                          Have I put something in the wrong spot or something cause when I go to view/export 2D the settings comes up but then it doesn't give me a file type to save it as?

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 7
                                          • 8
                                          • 1 / 8
                                          • First post
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement