[Plugin] Export 2d with Alpha
-
@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. -
Master Thom Thom strikes again! (a true gem)
now i know why the name: it's two of you!! thank you, thank you
-
Thomas, if you could just display the aspect ratio that would be helpful. I could manually enter values using a calculator.
John
-
Great! I needed something like this last week, how did you know?
Thanks for another useful plugin!
-
@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. Not urgent by any means.
-
-
-
Is there some way to separate shadows pass?
-
-
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.
-
@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
-
Congratulations - one of the best for su 2d app
-
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.
-
@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? -
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?
-
@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.
-
@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.
-
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.
-
@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...
Advertisement