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

    [Plugin] Export 2d with Alpha

    Scheduled Pinned Locked Moved Plugins
    148 Posts 42 Posters 117.0k 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.
    • thomthomT Offline
      thomthom
      last edited by

      Compression should only apply to JPEG.

      If you export a similar 2D image from File > Export 2D?

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

      1 Reply Last reply Reply Quote 0
      • FrederikF Offline
        Frederik
        last edited by

        @frederik said:

        ...but I also set the compression to 0...

        Looking for a smiley banging the head into the wall...
        Seem that this was causing the issue... 😳
        If I leave the compression at 0.9, I'm able to open the file in res. 4400x2250px in Photoshop and the file size is 2.76Mb, which seem reasonable...

        Perhaps you should lock the compresion to a specific value or make sure that it can't be set to 0 (read: zero)... πŸ’­

        Cheers
        Kim Frederik

        1 Reply Last reply Reply Quote 0
        • FrederikF Offline
          Frederik
          last edited by

          @thomthom said:

          Compression should only apply to JPEG.

          Then it should - by default - be "in-active" when saving to png IMO...

          @thomthom said:

          If you export a similar 2D image from File > Export 2D?

          No problem, but then I can't get the transparency I need... πŸ˜‰

          Cheers
          Kim Frederik

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

            I had no idea it would cause oddities for PNG files... :s
            The documentation (roll eyes) says:

            @unknownuser said:

            (optional) Float compression factor for JPEG images, between 0.0 and 1.0

            http://www.sketchup.com/intl/en/developer/docs/ourdoc/view#write_image

            So I figured there was no need to disable/enable depending on filetype - which I have no means of obtaining either as the filedialog comes after the options (SketchUp API limitation). And 0.0 is a valid value for JPEG - at least according to the API... though I've never tried to set it that low.

            This sounds like a SketchUp bug - or very poor API documentation.
            Unfortunately there isn't a whole lot I can do to address this.

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

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

              hm... looking at the docs again, 1.0 is best quality - 0.0 is worst. Compression is probably incorrect label (I just inherited the API argument name) - Quality is probably a better label.

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

              1 Reply Last reply Reply Quote 0
              • FrederikF Offline
                Frederik
                last edited by

                @thomthom said:

                This sounds like a SketchUp bug - or very poor API documentation.
                Unfortunately there isn't a whole lot I can do to address this.

                No worries, Thomas...
                You have my deepest respect regardless of this... πŸ˜„
                At least I found the reason and know what to do to avoid this in the future... πŸ‘

                Cheers
                Kim Frederik

                1 Reply Last reply Reply Quote 0
                • FrederikF Offline
                  Frederik
                  last edited by

                  @thomthom said:

                  hm... looking at the docs again, 1.0 is best quality - 0.0 is worst. Compression is probably incorrect label (I just inherited the API argument name) - Quality is probably a better label.

                  Getting slightly confused...
                  Are you going to update the plugin then...? πŸ˜•

                  Question:
                  Why are the user not able to select the file-type from the drop down list...?
                  If the user had to select the file-type (i.e. JPG or PNG) the compression could be inactive when png is selected and transparency can be inactive (obviously) when the user have selected jpg... πŸ€“

                  Cheers
                  Kim Frederik

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

                    That could possibly be an option. Might do that ... some time. But currently my priorities are Bezier Surface and Vertex Tools.

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

                    1 Reply Last reply Reply Quote 0
                    • FrederikF Offline
                      Frederik
                      last edited by

                      @thomthom said:

                      That could possibly be an option. Might do that ... some time. But currently my priorities are Bezier Surface and Vertex Tools.

                      Take your time, Thomas... πŸ˜‰

                      Cheers
                      Kim Frederik

                      1 Reply Last reply Reply Quote 0
                      • Q Offline
                        quentinbuilder
                        last edited by

                        I have installed the plug-in and also the required TT_lib2. The export option exists in views pulldown. I select and get the window where I select resolution, transparency- then I get a file browser window and the file option is blank and it does not seem to save a file- I must be doing something wrong. Does this work with SU8 free version?
                        Thanks
                        Quentin

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

                          Works with free version yes, but due to a bug in the API you must manally type the file extension of the file.

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

                          1 Reply Last reply Reply Quote 0
                          • V Offline
                            vojo
                            last edited by

                            Export 2D works great!!! Only issue is having to do it multiple times to make sure it fits in window

                            Any thought to either a preview panel to let use check it fits....or....zoom to fit and, once exported, return to original zoom level (maybe key off selection of shapes to be exported)

                            just a thought

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

                              I recommend that people use V-Ray Tools instead. You don't need V-Ray to use it, but it has a better interface for setting the safe frame and exporting.

                              http://sketchucation.com/forums/viewtopic.php?t=15491

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

                              1 Reply Last reply Reply Quote 0
                              • FrederikF Offline
                                Frederik
                                last edited by

                                Why is this plugin not in the SketchUcation plugin store...?
                                Is there another plugin, which is better for making a png with alpha/transparency background...?

                                Cheers
                                Kim Frederik

                                1 Reply Last reply Reply Quote 0
                                • V Offline
                                  vojo
                                  last edited by

                                  supposedly the VRAY plugin is suppose to be better. However, my experience is that VRAY doesnt do a single thing....just sits there. So I use this plugin extensively (even modified it to get defaults the way I want them).

                                  Like I said earlier....this pluging works well....would recommend it....VRAY not on my recommended list (there are other plugins from various authors that I would not recommend at all).

                                  1 Reply Last reply Reply Quote 0
                                  • FrederikF Offline
                                    Frederik
                                    last edited by

                                    I can highly recommend the [SU]Ch v1.0.1 plugin by renderiza, which also enables the user to make a png-file with alpha/transparency... 😍

                                    Cheers
                                    Kim Frederik

                                    1 Reply Last reply Reply Quote 0
                                    • Rich O BrienR Online
                                      Rich O Brien Moderator
                                      last edited by

                                      @frederik said:

                                      Why is this plugin not in the SketchUcation plugin store...?
                                      Is there another plugin, which is better for making a png with alpha/transparency background...?

                                      It is

                                      Download the free D'oh Book for SketchUp πŸ“–

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

                                        @frederik said:

                                        Why is this plugin not in the SketchUcation plugin store...?
                                        Is there another plugin, which is better for making a png with alpha/transparency background...?

                                        It has been superseded by V-Ray Tools. I know it's a bit confusing that it says V-*Ray, but there's an export 2d function there that works better than this plugin.

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

                                        1 Reply Last reply Reply Quote 0
                                        • V Offline
                                          vojo
                                          last edited by

                                          oh you guys are going to love this one

                                          export 2d stopped working....it would post menus...but no image written
                                          (VRAY just never worked for me at all in any way on any day)
                                          Tried to reload sketchup couple of times....no avail..still got menus but no actual image write
                                          Went into the plugin and changed 1 text string by 1 character
                                          (added a space in save file panel title)
                                          Reloaded sketchup...works again
                                          I suspect its the whole plugin mgmt infrastructure....not so much the actual plugin

                                          Just got to love all this "free" stuff

                                          1 Reply Last reply Reply Quote 0
                                          • Dave RD Offline
                                            Dave R
                                            last edited by

                                            It works just fine for me as it comes "out of the box". I would have to conclude that it is a problem on your end and not the plugin.

                                            This was created a few moments ago using Export 2D.

                                            Etaoin Shrdlu

                                            %

                                            (THERE'S NO PLACE LIKE)

                                            G28 X0.0 Y0.0 Z0.0

                                            M30

                                            %

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

                                            Advertisement