Page 1 of 1

Smoothing turned off in latest plugin

Posted: Tue Jun 14, 2011 3:44 am
by donb
Hi JD,

I recently installed the new plugin and found that smoothing is turned off when I hit the Render button but not if I use Export. I hope this is on the list of future fixes. It's really cumbersome to use Export when doing test renders.

Thanks,
DonB

WinXP32
Maxwell 2.5.1
SU 7.1.686
SU/MW plugin 2.5.15

Re: Smoothing turned off in latest plugin

Posted: Tue Jun 14, 2011 3:15 pm
by JDHill
I believe I've found the reason for this; the last version wraps the export routine in a SketchUp API construct which prevents extraneous undo operations from appearing in the undo list. This issue is apparently due to that. To defeat it, you can open [sketchup]/Plugins/maxwell/lib/export.rb and "comment out" the following lines:

lines 81-86:
Code: Select all
86     if Env.on_su7?
87       model.start_operation("Export MXS", true, false, false)
88     else
89       model.start_operation("Export MXS")
90     end 
line 144:
Code: Select all
144    model.abort_operation
To "comment out" means to place a pound sign in front of the lines to make Ruby ignore them (this is used for putting comments in code, hence the name):
Code: Select all
86     #if Env.on_su7?
87     #  model.start_operation("Export MXS", true, false, false)
88     #else
89     #  model.start_operation("Export MXS")
90     #end 
Code: Select all
144    #model.abort_operation
Please try doing this and let me know if it takes care of the issue for you -- it does here.

Re: Smoothing turned off in latest plugin

Posted: Thu Jun 16, 2011 5:59 am
by donb
Hi JD,

That did it. Thanks! :D

DonB