sketchucation logo sketchucation
    • Login
    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] Export 2d with Alpha

    Scheduled Pinned Locked Moved Plugins
    148 Posts 42 Posters 118.7k Views 42 Watching
    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.
    • R Offline
      rv1974
      last edited by

      Is there some way to separate shadows pass?

      1 Reply Last reply Reply Quote 0
      • PixeroP Offline
        Pixero
        last edited by

        @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
        • thomthomT Offline
          thomthom
          last edited by

          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
          • PixeroP Offline
            Pixero
            last edited by

            @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

              Congratulations - one of the best for su 2d app

              1 Reply Last reply Reply Quote 0
              • GaieusG Offline
                Gaieus
                last edited by

                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
                • thomthomT Offline
                  thomthom
                  last edited by

                  @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

                    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
                    • thomthomT Offline
                      thomthom
                      last edited by

                      @unknownuser said:

                      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?

                      After the Settings window and you click OK you should get a File Dialog asking you what name to give the file. You must specify the file extension yourself.

                      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

                        @thomthom said:

                        After the Settings window and you click OK you should get a File Dialog asking you what name to give the file. You must specify the file extension yourself.

                        I know and it doesn't give me any file type to save it as at all.

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          You have to type the file type yourself - there is no list of file types because the SketchUp Ruby API doesn't let me provide one.

                          So if you want to save a jpg file just enter "myfile.jpg" in the file dialog.
                          filedialog.png

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

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by

                            @thomthom said:

                            @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?

                            The most recent one; SU 8.

                            Here is a screen capture; now with a different codec than the one you could not open the other day if you remember...


                            test2.avi

                            Gai...

                            1 Reply Last reply Reply Quote 0
                            • thomthomT Offline
                              thomthom
                              last edited by

                              That baffles me. I have no idea why this happens. Exactly the same works for me... ❓ πŸ˜• ❓


                              test1.zip

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

                              1 Reply Last reply Reply Quote 0
                              • GaieusG Offline
                                Gaieus
                                last edited by

                                Well, sigh... I can always use LO for exporting png's with transparent background...

                                Maybe it's an XP thing?

                                Gai...

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  I don't know. Haven't got an XP machine at hand right now. Could be an SketchUp bug...

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

                                  1 Reply Last reply Reply Quote 0
                                  • GaieusG Offline
                                    Gaieus
                                    last edited by

                                    Well, you know where to report it (and who has all sorts of machines). I have no clue about the ins and outs of ruby. I could never make a proper bug report on plugins!
                                    πŸ˜„

                                    Gai...

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      Just to narrow it down to a simple test case - can you try this one-liner?

                                      <span class="syntaxdefault">Sketchup</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_model</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">active_view</span><span class="syntaxkeyword">.</span><span class="syntaxdefault">write_image</span><span class="syntaxkeyword">(</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">{</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">;</span><span class="syntaxdefault">filename</span><span class="syntaxkeyword">=></span><span class="syntaxstring">'C;\test.png'</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">;</span><span class="syntaxdefault">width</span><span class="syntaxkeyword">=></span><span class="syntaxdefault">640</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">;</span><span class="syntaxdefault">height</span><span class="syntaxkeyword">=></span><span class="syntaxdefault">480</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">;</span><span class="syntaxdefault">antialias</span><span class="syntaxkeyword">=></span><span class="syntaxdefault">false</span><span class="syntaxkeyword">,</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">;</span><span class="syntaxdefault">transparent</span><span class="syntaxkeyword">=></span><span class="syntaxdefault">trueΒ </span><span class="syntaxkeyword">}</span><span class="syntaxdefault">Β </span><span class="syntaxkeyword">)</span><span class="syntaxdefault">Β </span>
                                      

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

                                      1 Reply Last reply Reply Quote 0
                                      • GaieusG Offline
                                        Gaieus
                                        last edited by

                                        Try what? Enter the ruby console? I get this:


                                        test.png

                                        Gai...

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          If you set the background color to be 0,0,0 [pure-black] then the image will export with a transparent background in place of the 'pure-black', when you open it in Gimp or a web-browser etc you will see there is no background... πŸ€“test.png

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • thomthomT Offline
                                            thomthom
                                            last edited by

                                            @tig said:

                                            If you set the background color to be 0,0,0 [pure-black]

                                            Should not need to do this - I export with the default SketchUp Sky - still I get transparency.

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

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

                                            Advertisement