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.
    • JClementsJ Offline
      JClements
      last edited by

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

        @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
        • CadFatherC Offline
          CadFather
          last edited by

          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
          • JClementsJ Offline
            JClements
            last edited by

            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
            • EscapeArtistE Offline
              EscapeArtist
              last edited by

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

              Thanks for another useful plugin! πŸ‘

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

                @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
                • JClementsJ Offline
                  JClements
                  last edited by

                  Thomas. Not urgent by any means.

                  John | Illustrator | Beaverton, Oregon

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

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

                      @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

                        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
                                            • 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