Page 1 of 1

mxm create...

Posted: Tue Dec 01, 2009 11:38 am
by macitect
...doesn't work for me from the plug-in. Anybody else experienced this?

Re: mxm create...

Posted: Tue Dec 01, 2009 12:41 pm
by fv
edit and create do not work for me either

osx-v2 plugin v2.4

Re: mxm create...

Posted: Tue Dec 01, 2009 12:42 pm
by fv
asign your mxm's in Studio. v2 and the new plugins have problems with automxm and mxmreporter.
just export your model to mxs into Studio and work from there. I haven't had much problems working like that, all other ways driectly out of SU gave me problems witth latest Maxwell versions.
Francois

Re: mxm create...

Posted: Tue Dec 01, 2009 4:15 pm
by JDHill
Here are a couple of problems I found with this on osx. First, the MXM.html file has an incorrect call in the 'Create' button. If you open the file in a plain text editor, near the bottom you will find this:
Code: Select all
    <input class="mx" onClick="onEdit()" type="button" name="onedit" id="onedit" size="100" value="Edit">
    <input class="mx" onClick="onEdit()" type="button" name="oncreate" id="oncreate" size="100" value="Create"></p></td>
The second 'onClick' should be calling 'onCreate()' rather than 'onEdit()'. The corrected lines would look like this:
Code: Select all
    <input class="mx" onClick="onEdit()" type="button" name="onedit" id="onedit" size="100" value="Edit">
    <input class="mx" onClick="onCreate()" type="button" name="oncreate" id="oncreate" size="100" value="Create"></p></td>
Secondly, MXED may not be correctly started on osx, due to a lack of proper quoting for the MXED path. That can be seen near the top of MaxwellExport.rb:
Code: Select all
if $OSXPlatform
   $MXEDPath = "/Applications/Maxwell 2/mxed.app/Contents/MacOS/mxed"
   $MXManualPath = "/Applications/Maxwell 2/manual/Maxwell_Render_v2_Manual.pdf"
end
It can be changed by adding apostrophes around the path, inside of the quotation marks:
Code: Select all
if $OSXPlatform
   $MXEDPath = "'/Applications/Maxwell 2/mxed.app/Contents/MacOS/mxed'"
   $MXManualPath = "'/Applications/Maxwell 2/manual/Maxwell_Render_v2_Manual.pdf'"
end
If you don't want to edit these manually, here are the fixed files. Just download, unzip, and replace the MaxwellExport.rb and Maxwell/MXM.html files in your /Library/Application Support/Google Sketchup [6/7]/SketchUp/plugins directory with them. Note that this only applies to osx - it appears to be working fine in Windows.

Re: mxm create...

Posted: Wed Dec 02, 2009 4:13 pm
by numerobis
JD: do you have such a fix for the hdri options too?

Re: mxm create...

Posted: Wed Dec 02, 2009 5:12 pm
by JDHill
I am unable to duplicate the issue here (osx or windows), so can you open the Ruby console and see if any errors are printed when you try to browse for an hdri?

Re: mxm create...

Posted: Wed Dec 02, 2009 5:25 pm
by numerobis
no, nothing is displayed :(

Re: mxm create...

Posted: Wed Dec 02, 2009 6:18 pm
by JDHill
Can you go into your SketchUp /plugins directory, copy & zip the MaxwellExport.rb and /Maxwell folders, and email them to me (jeremy at nextlimit dot com)?

Re: mxm create...

Posted: Thu Dec 03, 2009 12:48 pm
by numerobis
Hi JD,

thank you for your effort. here a direct download of the files (maxwell.rb, maxwell folder and maxwell exporter):

http://www.filefactory.com/file/a1f8765 ... es_v24.zip

but these are the original files that come with version 2.4...

Re: mxm create...

Posted: Thu Dec 03, 2009 1:47 pm
by JDHill
Yes, but I just had to make absolutely sure they are the same, and that they work fine here...and they do. Next up:

1. open the /plugins/Maxwell folder
2. double-click on the Hdri.html file

It should open in your default web browser; if not, use right-click > Open With and choose a web browser. When it opens, click on the background channel's browse button - what happens? The browser should:

1. if it's IE, it should try to go to an address named 'skp:on_loadBackground', which will not be found
2. if it's FireFox, it should show an error dialog indicating that it doesn't know what the 'skp' protocol is.