MoI discussion forum
MoI discussion forum

Full Version: MoI file to Blender > MoI

Show messages: All  1-7  8-10

From: Michael Gibson
3 Jul 2019   [#8] In reply to [#7]
Hi mat,

re:
> B. Import OBJ
> - Took off the .htm and .js...still no go. Image attached.

It looks like you're renaming the file names in your commands folder. That won't do what you need - the link above (http://moi3d.com/forum/index.php?webtag=MOI&msg=6674.453) is about setting up a shortcut key, you do that inside MoI in the Options dialog Shortcut keys
section, not inside the macOS Finder.

If you set up a shortcut key (in the MoI Options dialog) with "_ImportOBJ exact" as the command part of the shortcut key, then you would trigger the command by pressing the shortcut key.

But also another way you could get it set up would be to modify the _ImportObj.js script file in a text editor so that the "exact" behavior is the default. Then you would not need to set up a parameter for it and you would also be able to use the button for it instead of a keyboard shortcut.

To do that, open up _ImportObj.js in a text editor and go to line number 10 which has this currently:

code:
if ( moi.command.getCommandLineParams() ==='exact' ) { moi.ui.commandUI.normalizeObj( false ) } else { moi.ui.commandUI.normalizeObj( true ) }


replace it with this instead:

code:
if ( true ) { moi.ui.commandUI.normalizeObj( false ) } else { moi.ui.commandUI.normalizeObj( true ) }


Hope that works for you!

- Michael
From: Michael Gibson
3 Jul 2019   [#9] In reply to [#7]
Hi mat,

re:
> Now the MoI import is much closer...still off by a tad though.

Maybe your bounding box measurement in Blender is giving you the bounding box of the control polygon hull, while in MoI it's giving you the bounding box of the smoothed subdivision surface?

- Michael
From: mat10x
6 Jul 2019   [#10] In reply to [#8]
Hi Michael,

Hope you had a great 4th!

- ImpOBJ text editor script change works great!

- "Maybe your bounding box measurement in Blender is giving you the bounding box of the control polygon hull, while in MoI it's giving you the bounding box of the smoothed subdivision surface?"
Hmm, I'll have to look into that possibility.

Thanks so much for all your help!

M

Show messages: All  1-7  8-10