[Plugin] Export 2d with Alpha

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

Postby bupaje » Thu Apr 28, 2011 4:12 am

I have a suggestion for this great plugin (if still in development). :)

Would it be possible to export multiple layers as a series of png's? I see that ImageReady CS2 has an option to import a series of images to layers, which can then be saved out as a psd file. This would make SketchUp great for blocking in some layers -say foreground/midground/background elements and individual objects, then opening in Photoshop to do paintovers with the objects seperated by layer.
0

bupaje 
 

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

Postby sank64 » Thu Jun 02, 2011 3:14 pm

Takk for det!
0

sank64 
 

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

Postby mooshonov » Wed Jul 06, 2011 1:46 pm

Hey thom and thanks for this great plugin.

I need to produce some 2d transparency alpha maps. Installed TT_lib2 folder along side tt_lib and tt_export.rb into the plugins directory.

Don't have the dialoug which you mark "Transparency" while exporting png from file>export>2d graphic.

many thanks
0
V-Ray for SketchUp eBook author
>>> Buy your copy now at vfsbook.com
Licensed Instructor
Chaos Group Partner
CEO @ V-Ray Israel
User avatar
mooshonov 
 

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

Postby thomthom » Wed Jul 06, 2011 2:20 pm

mooshonov wrote:Don't have the dialoug which you mark "Transparency" while exporting png from file>export>2d graphic.

See the description again in the first post. The menu is not located under File, it is "View -> Export 2d".
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby Rich O Brien » Wed Jul 06, 2011 2:25 pm

Thom,

Ever notice some funny screen cropping using this?
0
User avatar
Rich O Brien 
Administrator
 

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

Postby thomthom » Wed Jul 06, 2011 2:51 pm

Cropping? It exports the incorrect area?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby Rich O Brien » Wed Jul 06, 2011 3:28 pm

Exactly, if I play with resolution size at times it'll crop away some of the image. But I'm keeping the the same ratios.
0
User avatar
Rich O Brien 
Administrator
 

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

Postby thomthom » Wed Jul 06, 2011 3:35 pm

Can you post a reproducible example?
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby JClements » Wed Jul 06, 2011 3:47 pm

Rich, I'm not sure if I understand the issue. Would the following help?

1- Open SU.

2- Use the Film&Stage Plugin, create a camera, edit the Aspect Ratio of the camera, and adjust the window according so there aren't any gray bars.

3- Now close and reopen SU. Open your model. Pan and tweek your model within the confines of the window. Now export using the width value in pixels of the value assigned to the camera of Film&Stage in Step 2.

John
0
John | Illustrator | Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

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

Postby Rich O Brien » Wed Jul 06, 2011 4:14 pm

Thanks John. I'll try that later when I'm at PC. Hope all is well with you :thumb:

But, to clarify about using this tool. Let's say I have SU maximised and the workspace resolution is 1600x1200. So the export must follow 4:3 to export the scene correctly? Otherwise cropping will occur? This would be my normal approach but at times exporting at larger resolutions resulting in cropping.

Is it possible that an onscreen doodad be added, not those grey bars, to reflect the capture zone? I notice Thea Exporter add 'Rule of Thirds' overlay ;)
0
User avatar
Rich O Brien 
Administrator
 

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

Postby mooshonov » Thu Jul 07, 2011 11:40 am

thomthom wrote:
mooshonov wrote:Don't have the dialoug which you mark "Transparency" while exporting png from file>export>2d graphic.

See the description again in the first post. The menu is not located under File, it is "View -> Export 2d".


THANKS!
0
V-Ray for SketchUp eBook author
>>> Buy your copy now at vfsbook.com
Licensed Instructor
Chaos Group Partner
CEO @ V-Ray Israel
User avatar
mooshonov 
 

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

Postby derei » Sun Sep 25, 2011 11:26 am

Feature request:

Hy thomthom I use this plugin a lot and sometimes I need to work faster with it. So, if you don't mind, I would like to request some features for it.

-cross-session save of chosen parameters
-actual screen size image export
-now, if resolution doesn't match with screen, it clips out the model (is like the height of image tries to fit the screen, and clips from width). Is it possible to fit the model instead?

Also, I would like to better explain to me what exactly "0.9" value from "compression" parameter means, now I let it like it is because I have no idea what values I could input and how it will change the image.

Thanks for taking this into consideration.
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

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

Postby thomthom » Mon Sep 26, 2011 8:38 am

dereeei wrote:Also, I would like to better explain to me what exactly "0.9" value from "compression" parameter means, now I let it like it is because I have no idea what values I could input and how it will change the image.

It's how much a JPEG will be compressed.

I'll make notes of the requests and see what I can do.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby derei » Mon Sep 26, 2011 1:21 pm

thomthom wrote:It's how much a JPEG will be compressed.

But the exported image is PNG :? I'm not sure that I understand. Ok, it's about compression... I asume "no compression" means 0 (zero) ? what is the maximum value that can be used?
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

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

Postby thomthom » Mon Sep 26, 2011 1:31 pm

dereeei wrote:
thomthom wrote:It's how much a JPEG will be compressed.

But the exported image is PNG :? I'm not sure that I understand. Ok, it's about compression... I asume "no compression" means 0 (zero) ? what is the maximum value that can be used?


the export will be in the format determined by the file extension you give it.

The compression is from 0.0 to 1.0

The UI isn't very good - old plugin made to solve a particular problem I had with a project.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby TIG » Mon Sep 26, 2011 1:44 pm

The 'compression-level' affects the 'image-quality' and the 'file-size'. Perversely, the higher the number the better the file's 'quality' and the less compressed the file is; so 0.1 is low-quality, 0.5 is medium-quality, 0.9 is high-quality etc... When a file is compressed it gets smaller and therefore looses data and with that quality.
The number range is 0.0 to 1.0 [min>>>max for the quality BUT max>>>min for the compression].
It'd probably have been better [or at least more logical] if it had been called the 'quality' level, rather than the 'compression' level, because the higher the number the better the image 'quality', while the lower the number the more the image is 'compressed' and its file-size reduces... :roll:
0
TIG
User avatar
TIG 
Global Moderator
 

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

Postby derei » Mon Sep 26, 2011 1:56 pm

TIG wrote:The 'compression-level' affects the 'image-quality' and the 'file-size'. Perversely, the higher the number the better the file's 'quality' and the less compressed the file is; so 0.1 is low-quality, 0.5 is medium-quality, 0.9 is high-quality etc... When a file is compressed it gets smaller and therefore looses data and with that quality.
The number range is 0.0 to 1.0 [min>>>max for the quality BUT max>>>min for the compression].
It'd probably have been better [or at least more logical] if it had been called the 'quality' level, rather than the 'compression' level, because the higher the number the better the image 'quality', while the lower the number the more the image is 'compressed' and its file-size reduces... :roll:

Thank you very much, TIG! It makes all clear for me.
I tweaked myself the plugin a little, to have different values when it starts, but I could not find a way how to read Drawing area resolution. Maybe I haven't looked in SU Ruby API, in the right place... could you point a direction for me to follow?
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

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

Postby thomthom » Mon Sep 26, 2011 2:01 pm

0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby derei » Mon Sep 26, 2011 4:17 pm

thomthom wrote:view.vpwidth and view.vpheight

http://code.google.com/apis/sketchup/do ... ml#vpwidth

Interesting...it seems that vpheight; width takes into consideration the viewport WITHOUT toolbars. Any fix for this?
0
DESIGNER AND ARTIST DEREI.UK
User avatar
derei 
 

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

Postby davidlouis » Fri Oct 21, 2011 9:49 am

Hi Thom

I've been using your plugin and am loving it... :thumb:

One small thing I have noticed is that a 'blank background' behind a 'glass' material is still interpreted as a complete transparency in the png exported file and if you're trying to slide in a sky behind say a glazed building, this can look a bit unrealistic.

Would there be anyway to alter the plugin to recognize a transparent sketchup material and produce a semi transparent section over these areas in the resulting png much like the alpha maps generated by Vray that accompany jpg exports where black represents 100% transparent, white 100% opaque and shades of grey somewhere in between...? I'm not asking for a true alpha map file like Vray, merely that the coloured png export takes cogniscence of the transparent materials...

Thanks

Dave
0

davidlouis 
 

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

Postby Gaieus » Fri Oct 21, 2011 10:39 am

I am far not any expert at any scripting things but what I can imagine, here the plugin uses the same "exploring" methods of what is opaque and what is not as the SU shadow engine. I.e. if something is more than 70% opaque, it will be fully opaque and if it is less that 70% opaque, it will be fully transparent.

Can you try a quick test to slide the opacity of these windows to 70%+ and export that way? Eventually, as a workaround, you can export two images this way and overlay them to get something "in-between" (and which you can mask out easily in PP).
0
User avatar
Gaieus 
 

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

Postby thomthom » Sat Oct 22, 2011 10:25 am

I'm afraid I cannot do anything about the export results. I'm just calling a SketchUp method...
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

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

Postby mods135 » Fri Oct 28, 2011 11:53 am

Thomas I am wondering if the plugin works for version 8? I cannot seem to get an export with just the object showing. There is always still a background. Your plugin loaded ok and I left the settings as on this site (transparency =yes etc). The only problem I noticed is that the file type drop down list is blank - no file types show, so I cannot select png.
Can you help?
Thanks
mods135
0

mods135 
 

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

Postby Rich O Brien » Sat Oct 29, 2011 11:21 am

When saving add .png to the file name. If the name is image then save as image.png.

This plugin only works with v8
0
User avatar
Rich O Brien 
Administrator
 

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

Postby Gaieus » Sat Oct 29, 2011 11:45 am

Also make sure that you turn off ground and sky in your styles settings and set background colour to pure white (255,255,255)
0
User avatar
Gaieus 
 

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

Postby nomeradona » Sun Oct 30, 2011 3:22 am

never realized that this was a year old posting and yet this is my first time to see this excellent script. Thanks Thomas.
0

nomeradona 
 

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

Postby AlainBo » Sun Jan 15, 2012 8:00 pm

Very nice.
Could you just remember the settings we choosed, at least per session?
Could you have alook at the fields's parsing orde via tab key?
And why not a "respect aspect ratio checkbox?
And why not automatically add the .png extension which not seems to be the case. In fact if we don't specify extension, the image is not generated.

Wow, will be perfect.... lol

Thanks,
Alain
0

AlainBo 
 

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

Postby shahkoorosh » Thu Feb 16, 2012 1:19 am

thank you very much thomthom for this plugin, but unfortunately I couldn't use this.
when I try to open SU this error will appears.

could u help me? thanks :)
0

shahkoorosh 
 

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

Postby TIG » Thu Feb 16, 2012 11:11 am

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
0
TIG
User avatar
TIG 
Global Moderator
 

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

Postby thomthom » Thu Feb 16, 2012 11:13 am

I'm going to change my template so that plugins will display a more Plain English message that TT_Lib is missing.
0
Thomas Thomassen — SketchUp Monkey & Coding addict
List of my plugins and link to the CookieWare fund
User avatar
thomthom 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: enoslayuk, Google Bot, marcbarra, pk2017, pujaantarbangsa and 12 guests