Page 1 of 1

Bug with scene manager

Posted: Wed Aug 15, 2012 8:14 am
by gtalarico
Bug #1

I have never seen this error before.

It happens only on one specific model I have.
I cannot alter the file output name or location because they are missing from the scene manager.

I am 99% sure if I copy and paste geometry into a new file it will go away, but then I will have to re adjust all scene/camera/environment/output settings.

I am using 2.7.0

http://i.imgur.com/yu3hw.png

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 8:40 am
by JDHill
First, let's try to see what values are screwing up JavaScript. Close the Scene Manager, open the Ruby Console, and enter the following commands (hitting Enter after entering a line executes that line):
Code: Select all
MX::Util.get_output_property('output.scene_name')
MX::Util.get_output_property('output.scene_dir')
MX::Util.get_output_property('output.mode')
After each one, something might be printed in the console -- just copy/paste the contents of the console here so I can see. Then, enter these three commands:
Code: Select all
MX::Util.set_output_property('output.scene_dir', nil)
MX::Util.set_output_property('output.scene_name', nil)
MX::Util.set_output_property('output.mode', nil)
Then open the Scene Manager again -- the values should be zeroed-out now.

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 5:29 pm
by gtalarico
Outputs:
Code: Select all
#<Sketchup::Model:0x9b108b0>
MX::Util.get_output_property('output.scene_name')
GlassTest2
Code: Select all
MX::Util.get_output_property('output.scene_dir')
P:/**private***/2012-07_Guis Studies/Rendering Tests
Code: Select all
MX::Util.get_output_property('output.mode')
prompt




I then cleared the parameters, but still got a similar error when opening the scene manager, but this time "Char = 4620", instead of the 4795.

Output fields are still missing from the scene manager

Edit:
Crap - I also just realized that pasting it into a new file would be difficult because of all the scenes/cameras I have saved and cannot change. Is there a way to import/export cameras? Or, is there a master Maxwell parameters reset for the manager (Reset to factory)?

Edit2: I tried pasting all the geometry into new file, and as soon as the geometry was inserted, the same error poped up. So the bug is being carried with the geometry somehow.... : /

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 6:19 pm
by JDHill
I can't guess what's happening -- I will need you to send me (jeremy at nextlimit dotcom) the scene. It will probably be easy to fix.

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 6:31 pm
by gtalarico
I was in the process of uploading a scene for you..

This may help:
I deleted 90% of the model.
The bug is there when I open the scene manager ("Output Section is missing")

But then if purge unused components and materials, the bug disappears!

Here is .zip with 2 copies of the file, purge and not purged.

https://www.dropbox.com/s/neztgyxasjtpb ... gerBug.zip

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 6:45 pm
by JDHill
Thanks, I'll take a look and figure out what's the problem. It must be in the materials, because the Scene Manager does not care about components.

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 7:47 pm
by JDHill
Somehow, the name of your first material, which looks like _ActualGlass, is led by a unit separator character. This is an unprintable character that you can type by holding ALT+031. You just need to remove that character (change the name in SketchUp's Materials window), and everything should be okay. I'll see about being defensive against this sort of thing in the future.

Re: Bug with scene manager

Posted: Wed Aug 15, 2012 8:42 pm
by gtalarico
That solved it.

I will file that under bizarre bugs that only happen to me.

Thanks :D