SU2LUX Exporter for Sketchup 0.1-dev

Discussion related to the exporter plugin for SketchUp.

Moderators: Ratow, coordinators

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby ivan.alvarado » Wed Mar 31, 2010 2:11 pm

Greenkot wrote:though no longer supports the glass by default, probably need to wait for the Material Editor.

yes, be patient
Greenkot wrote:..and I made new icons for the panel render, can enjoy

Image
wow is cool, I love the colors, THANKS!



BEST!
ivan.alvarado
 
Posts: 18
Joined: Wed Feb 03, 2010 1:28 am

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Wed Mar 31, 2010 2:17 pm

Glass materials aren't exported anymore with the latest repository version.

Fixed.

@Greenkot:
Nice icons.
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby Greenkot » Wed Mar 31, 2010 2:42 pm

I am glad that icons like.
ivan.alvarado wrote:
yes, be patient

I'm patient. Therefore, and wrote that I would wait until the Material Editor. (apparently I had screwed it up with the translation).

We only hope that once again will correct the problem with the "Undo" and "Redo" action in SketchUp.

exvion wrote:
Fixed.

Thanks
User avatar
Greenkot
 
Posts: 16
Joined: Tue Mar 16, 2010 7:38 am
Location: Russia

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Thu Apr 01, 2010 2:46 am

Bug. I create new scene. Plugins->Luxrender Exporter->Render. Save lxs file. Enter filename Untitled23.
Code: Select all
"user_input: C:\\Documents and Settings\\Administrator\\Untitled23"
Error: #<NoMethodError: undefined method `updateSettingValue' for nil:NilClass>
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux/LuxrenderSettings.rb:190:in `export_file_path='
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux/LuxrenderSettings.rb:187:in `export_file_path='
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux.rb:242:in `new_export_file_path'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux.rb:178:in `export_dialog'
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux.rb:532
C:/Program Files (x86)/Google/Google SketchUp 7/Plugins/su2lux.rb:532:in `call'
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby mimhotep » Thu Apr 01, 2010 4:16 am

Greenkot wrote:We only hope that once again will correct the problem with the "Undo" and "Redo" action in SketchUp.


Fixed

exvion wrote:Bug. I create new scene. Plugins->Luxrender Exporter->Render. Save lxs file. Enter filename Untitled23.

I'm unable to recreate the bug. It should have been fixed in Revision 43 from the repos, though.
If you could share other informations, I'll investigate the code, asap
Happy rendering
Cosimo Briganti aka Mimmo Briganti aka mImhotep
User avatar
mimhotep
 
Posts: 61
Joined: Wed Nov 25, 2009 12:20 pm
Location: Manduria (TA) - Italy

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby exvion » Thu Apr 01, 2010 4:37 am

I'm unable to recreate the bug. It should have been fixed in Revision 43 from the repos, though.

Thanks. Now it is working correctly.
exvion
 
Posts: 84
Joined: Mon May 18, 2009 12:33 pm
Location: Russia, Vologda

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby lfrisken » Thu Apr 01, 2010 6:23 am

edit: oops double post :oops:
Last edited by lfrisken on Thu Apr 01, 2010 8:20 am, edited 1 time in total.
lfrisken
Developer
 
Posts: 129
Joined: Fri Apr 24, 2009 5:46 am

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby lfrisken » Thu Apr 01, 2010 6:26 am

Hi guys,

I haven't disappeared, I've just been whittling away for a couple of weeks at LuxTypes.
I think I finally have a proof of concept. Nothing is final in there, and it all needs some
degree of reorganizing. I'm sure that many things could probably done better,
but here it is. It's quite powerful I think, but it's also getting more complicated :(

There is a slightly outdated class diagram in there as well.

The heart of the system is in LuxrenderTypes_settings.rb. That's the most interesting place for
you guys to look first, because it's where all the setting structures are defined.
If you run it (outside sketchup), it generates 3 files, which I've included in the zip:

preset_file
test.html
test.lxs

First about test.lxs. This is just a basic Luxrender format export of the settings with all their default values (according to the scene file format specification on the wiki). I'm actually surprised by it's speed considering what actually goes on underneath (and that it's all done in ruby which is notoriously slow).

test.html is another export of the settings structure, but in html format. all the code is in the html function for all the classes in LuxrenderTypes.rb and LuxrenderHTMLTypes.rb. The system is fairly flexible in the way that it's structures are defined (like a LuxSelection can be the value for a LuxString) but lately with the added complexity of catering for sketchup's inability to store ruby objects, I've run into a few problems which have been getting harder to fix. The basic idea behind this is that we shouldn't have to worry about making any changes in the settings section of the script the same as in the html user interface. This was surprisingly simple to generate. The only thing lacking now is a javascript generator, and a system for them to communicate, but I'm going to see how you guys think about what I've done so far before I even make a start on that (and also make sure that LuxrenderTypes.rb is more stable)

preset_file: As I discussed before, I've had to cater for sketchups inability to store ruby objects, so I came up with a way of storing the structure/objects in a string format. Most of the changes were in LuxrenderTypes.rb and in LuxrenderAttributeDictionaries.rb which is acts as a bridge between sketchup and su2lux (at the moment it's just implemented in a way that simulates use in sketchup to avoid having to do all my scripting in sketchup at this early stage). This was annoying and complicated to do, but I found one very cool biproduct, and that is that it is easy for a user to save their presets to file as demonstrated in preset_file. It should only be a simple matter to load them back into the system.
I'll wait to see how you guys think materials should be handled, but I'm sure that LuxTypes should come in handy for that as well, (could require some major changes to LuxrenderAttributeDictionarys.rb)

LuxrenderAttributeDictionaries.rb is a real work in progress, It's the main interface between sketchup, Luxtypes and the rest of the su2lux scripts, therefore some more careful thought will need to be given to it's design and implementation. At the moment it's just acting like a singleton using a method recommended by the ruby documentation.

I hope this can come in use anyway, and it should certainly be easy to finish adding the rest of the settings that are missing. No matter what happens, I've learned a lot in the creation of this. ;)

lfrisken
Attachments
LuxrenderTypesBranch.zip
ps. sketchup users, this is not a working update of su2lux
(72.4 KiB) Downloaded 71 times
lfrisken
Developer
 
Posts: 129
Joined: Fri Apr 24, 2009 5:46 am

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby Khai » Thu Apr 01, 2010 10:06 am

:(

latest Build, the Undo is broken again...
Khai
 
Posts: 8
Joined: Tue Feb 09, 2010 2:32 pm

Re: SU2LUX Exporter for Sketchup 0.1-dev

Postby Greenkot » Thu Apr 01, 2010 10:47 am

Khai, I understand you about the latest versions of mimhotep and lfrisken, you mean the problem with "Undo" after the launch and edit the Settings in LuxRender, because apparently any change in the options is defined as the action.
all other options SketchUp now not cause these problems.
I'm not a programmer so I can not say whether it will be decided. While rendering the subsequent effect upon its construction.
Yes and lfrisken, in the "LuxCube" one face not revers =)
User avatar
Greenkot
 
Posts: 16
Joined: Tue Mar 16, 2010 7:38 am
Location: Russia

PreviousNext

Return to SU2LUX (SketchUp Exporter)

Who is online

Users browsing this forum: No registered users and 1 guest