SketchUcation Plugin Store

 

 

[Plugin] Export 2d with Alpha (1.0.1) — 13 September 2010

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby shahkoorosh » Tue Feb 21, 2012 12:13 pm

TIG wrote:If you go back to the first page - where you downloaded the .rb file from you will see it says you require a support 'library' of files.
Use the link to get it, extract it and place its folder into the Plugins folder.
After Sketchup restarts it ought to find the required files in that folder and so your errors should stop...
Capture.PNG



Thanks dude, It's worked :berserk:
shahkoorosh
 
Posts: 2
Joined: Thu Feb 16, 2012 12:52 am
Location: Famagusta, Cyprus
Name: Koorosh

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby seen » Wed Mar 21, 2012 2:59 am

Thank you very much :thumb:
seen
 
Posts: 1
Joined: Wed Mar 21, 2012 2:55 am
Name: seen

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby optimaforever » Mon Apr 16, 2012 5:40 pm

Hello Thom,

This script is very useful.
Now when you export a batch of cameras from SU it resets the output resolution to your default 800x600.
Is it possible to keep the last output resolution by default? (I mean, if I saved a PNG in 2000x1000, the next output will keep 2000x1000 instead of 800x600)...
Thanks anyway.

Ryo
optimaforever
 
Posts: 5
Joined: Tue Apr 15, 2008 5:51 pm

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Mon Apr 16, 2012 6:14 pm

I have an update coming up soon. Not ready yet though.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Rich O Brien » Mon Apr 16, 2012 6:35 pm

You can change the code using a text editor.

I've mine setup to my resolution. :thumb:
:::Blog:::

I'm a Trimbler now!
User avatar
Rich O Brien
Administrator
 
Posts: 8305
Joined: Fri Oct 31, 2008 9:05 am
Location: Limerick, Ireland
Name: Rich O'Brien
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby raineysky » Mon Apr 16, 2012 8:08 pm

thomthom wrote:I have an update coming up soon. Not ready yet though.


Add mindreader to your list of skills. I just did a two hour search of the forums regarding transparent backgrounds and came across this. THANK YOU!!! :sketchstatic:
raineysky
 
Posts: 96
Joined: Fri Sep 09, 2011 6:46 pm
Location: Louisiana
Name: Paul
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: other
Level of SketchUp: Intermediate

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby RichardU » Thu Apr 26, 2012 6:08 pm

thomthom wrote:I have an update coming up soon. Not ready yet though.


I'm looking forward to it. Thanks.
RichardU
 
Posts: 8
Joined: Mon Feb 27, 2012 3:59 pm

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby RichardU » Thu Jun 21, 2012 6:28 pm

Cookieware donation sent. I don't know how you plan to update this, but it is very useful as is.

Thanks,

Richard
RichardU
 
Posts: 8
Joined: Mon Feb 27, 2012 3:59 pm

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jun 22, 2012 12:21 am

RichardU wrote:Cookieware donation sent. I don't know how you plan to update this, but it is very useful as is.


Thank you! :D

I have an update in development - more of a merge, transformation with V-Ray Tools (Don't worry, no V-Ray needed.)

CameraTools.png


Important new feature is that it tries to make up for the camera shifting that occurs when you set the aspect ratio.
Please, register (free) to access all the attachments on the forums.
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby GIphil » Thu Jan 24, 2013 4:41 pm

Excellent Plugin! The export values are a bit strange but I am just being picky! Thanks for your hard work!
GIphil
 
Posts: 1
Joined: Thu Jan 24, 2013 4:18 pm
Name: Philip McHenry
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: landscape architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Thu Jan 24, 2013 5:23 pm

Strange values?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Thu Jan 24, 2013 6:13 pm

Lately I've experienced that when I export a scene with transparency, in a resolution 4000x3000, I can see the transparency using the standard Windows Image viewer, however, I'm unable to open the png-file in PhotoShop...
It's just saying that it's unable to parse the file... :?
Also... I can't see the image if I try to use XnView...
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Thu Jan 24, 2013 6:17 pm

Sample file?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Thu Jan 24, 2013 8:24 pm

Here you go... :)
(NB! 37.8Mb) https://dl.dropbox.com/u/9887081/Test-for-Thomthom.png

Like I said, I'm able to open and see it with the standard Windows Image browser and I can open it in i.e. Firefox as well, but not in Adobe PhotoShop CS5.1 and XnView also have an issue when trying to see it... :|
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Thu Jan 24, 2013 8:31 pm

OK...
I found a way to make it work...
Open the file with Microsoft Office Picture Manager and export it to a new png-file...
The size will reduce from 37.8Mb to 1.58Mb and I can't see any quality loss... :roll:
Check this https://dl.dropbox.com/u/9887081/Test4Thomthom2.png
I'm able to open the new file in PhotoShop...

Edit: Well... It seem that I need to do something before it works, like use the crop tool and then export it...
The result is that the file size reduces significantly and then I'm able to open it in PhotoShop without any quality loss...
https://dl.dropbox.com/u/9887081/Test4Thomthom3.png
Strange... :?
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Thu Jan 24, 2013 9:47 pm

37.8MB for a 4400x2250px PNG image??? That ain't right.

Inspecting your file in a hex editor and it's full of NULL bytes. :s
The plugin leaves the writing for the image to SketchUp. And I've never seen this before.

My first thoughts are that this is a issue local to your machine. Are you for instance saving to a network drive etc?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 9:12 am

thomthom wrote:My first thoughts are that this is a issue local to your machine. Are you for instance saving to a network drive etc?

Well... In case it's something with my 'puter I wonder what's causing this, cause I've never experienced this before...
I'm just saving the image on my desktop, not on any network drive or another strange location...
Like I said... Very strange... :?

Edit: I've now tried to save the png-file to some other locations (eg. a folder on the C-drive, on the desktop, on a network drive), but the result remain identical... :(
Last edited by Frederik on Fri Jan 25, 2013 9:35 am, edited 1 time in total.
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jan 25, 2013 9:35 am

I don't know what it is to be honest.
Does it happen to all models?
Do you have another computer nearby where you can try?
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 9:41 am

thomthom wrote:Does it happen to all models?
Do you have another computer nearby where you can try?

Just did and it's the same... :(

If I save in resolution 800x600px it works fine and I can open it in Photoshop...
The file size is 1.83Mb in this resolution, but I also set the compression to 0...
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jan 25, 2013 9:45 am

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
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 9:47 am

Frederik wrote:...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... :oops:
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)... :idea:
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 9:48 am

thomthom wrote:Compression should only apply to JPEG.

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

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

No problem, but then I can't get the transparency I need... ;)
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jan 25, 2013 9:57 am

I had no idea it would cause oddities for PNG files... :s
The documentation (*roll eyes*) says:
(optional) Float compression factor for JPEG images, between 0.0 and 1.0

http://www.sketchup.com/intl/en/develop ... rite_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
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jan 25, 2013 9:59 am

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
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 10:01 am

thomthom wrote: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... :thumb:
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 10:05 am

thomthom wrote: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... :geek:
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Fri Jan 25, 2013 10:11 am

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
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby Frederik » Fri Jan 25, 2013 10:21 am

thomthom wrote: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... ;)
User avatar
Frederik
Top SketchUcator
 
Posts: 2172
Joined: Mon Nov 12, 2007 8:13 pm
Location: Denmark
Name: Kim Frederik
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: engineering and mechanical design
Level of SketchUp: Advanced

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby quentinbuilder » Tue Mar 12, 2013 6:23 pm

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
quentinbuilder
 
Posts: 1
Joined: Tue Mar 12, 2013 5:58 pm
Name: Quentin
Operating system: Windows
SketchUp version: 8
License type: Free
SketchUp use: engineering and mechanical design
Level of SketchUp: Beginner

Re: [Plugin] Export 2d with Alpha (1.0.1) — 13 September 201

Postby thomthom » Tue Mar 12, 2013 6:45 pm

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
User avatar
thomthom
Global Moderator
 
Posts: 17652
Joined: Tue Nov 13, 2007 12:47 pm
Location: Trondheim, Norway
Name: thomthom
Operating system: Windows
SketchUp version: 8
License type: Pro
SketchUp use: architecture
Level of SketchUp: Advanced

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago

Need Authorised SketchUp Training by experts in various disciplines? Check out our Training details.

Ad Machine
Robot
 
Posts: 2012

PreviousNext

Return to Plugins

Who is online

Users browsing this forum: Bing [Bot], blajnov, cham, Google Feedfetcher, krishsbhat, Pilou and 7 guests