MoI discussion forum
MoI discussion forum

Full Version: COOL ! Blender Import/Export add-on

From: KENMO
18 Jan   [#1]
Love the Blender Import / Export add-on (or is it plug-in, script or ?).

In my earlier post about image meshes in Blender and Wings3D.

I used the Blender plug-in (add-on, script or what ever it's called) to export the mesh to Blender and in MOI3D using a sphere I was able to do a boolean difference to cut a hole in the door.

Previous I used to export the model from Blender and import into MOI3D using the three obj import options** boolean difference always resulted in a mess.

Thanks Micheal for this wonderful plugin/add-on/ script. It opens up an whole new world for me.

Cheers and good luck to your Kraken.

Ken


** why are there three options to import an OBJ? what is the difference between the three, I thought MOI3D could not deal with models created in polygonal apps and is a reason why Sketchup models can not bee imported?


Image Attachments:
ScreenCap05.jpg 


From: Michael Gibson
18 Jan   [#2] In reply to [#1]
Hi KenMo,

re:
> Love the Blender Import / Export add-on (or is it plug-in, script or ?).

I don't know, do you have a link?


> Thanks Micheal for this wonderful plugin/add-on/ script. It opens up an
> whole new world for me.

It isn't mine.


> ** why are there three options to import an OBJ? what is the difference between the three,

I would need to take a look at it to try and answer this and I need a link to it to do that.


> I thought MOI3D could not deal with models created in polygonal apps and is a reason why Sketchup models can not bee imported?

It can work ok in limited circumstances with low polygon counts, but will tend to become unworkable with more polygons.

CAD models are not designed to be made up of hundreds of thousands of little flat facets.

- Michael
From: KENMO
18 Jan   [#3] In reply to [#2]
Here is the link in the MOI forum where Frenchy Pilou posted the link. Looks like it was from github. I recalled installing it but had forgotten all about it. Works great.

Check the MOI <> Blender thread at your MOI Forum for info. Sorry but when I post a link to the thread it does not open the thread, only the Discussions room.
SO I posted a reply in the original MOI <> Blender thread to make it current.

https://moi3d.com/forum/index.php?webtag=MOI

So is it a script, add-on, pug-in? And what is the difference between the three (if any) ?



Also shown are the two other options to bring an OBJ into MOI3D "subdiv",and "impObj". I find the BMOI add-on superior to the other two options. Never get any satisfactory results with either.

Image Attachments:
BMOI.jpg 


From: Michael Gibson
18 Jan   [#4] In reply to [#3]
Hi Ken,

re:
> So is it a script, add-on, plug-in?

Those are all more or less the same thing. You could call it any one of those.

- Michael
From: Elang
22 Jan   [#5] In reply to [#3]
Hi KENMO,

I'm interested in this. Could you please point to the right link?
(because your current link brought us to the forum index instead)

Thank you very much in advance.
From: Michael Gibson
22 Jan   [#6] In reply to [#5]
@Elang, I think this is it:
https://github.com/TitusLVR/BMOI_Connector

- Michael
From: Elang
23 Jan   [#7] In reply to [#6]
Thank you very much, Michael.

Edit:
I can't get both import and export to work:
- the export throws 'Error writing file'
- the import shows (an instantly closed) UI which says : "Joining. Press ESC to skip"

I'm using the still running V5 beta
From: Michael Gibson
23 Jan   [#8] In reply to [#7]
Hi Elang,

It says:
quote:

System requirements:

Windows 10
Windows 10 temp folder location must be by default

What is your temp folder location? If you press Win+R and put in %temp% what location opens?

- Michael
From: Elang
23 Jan   [#9] In reply to [#8]
Hi, Michael...

it's : C:\User\%username%\AppData\Local\Temp

I'm using windows 11, by the way.

Thank you for the fast respond.
From: Michael Gibson
23 Jan   [#10] In reply to [#9]
Hi Elang, your Temp folder looks fine.

If you create a folder named BMOI inside %temp% does it then work ok?

It appears that you need to run the blender plugin once first before you use the MOI side so that sub-folder inside the temp folder will get created.

- Michael
From: Michael Gibson
27 Jan   [#11]
Here's a version that should work on Mac.

The install is mostly the same as on the main page:
https://github.com/TitusLVR/BMOI_Connector

You put the MOI scripts under ~/Library/Application Support/Moi/commands and ~/Library/Application Support/Moi/startup

and the Blender script goes under ~/Library/Application Support/Blender/<BlenderVersion#>/scripts/addons/BMOI_Connector/__init__.py

- Michael

EDIT: updated Mac version to put temp files directly in /tmp instead of in subdirectory since some on some OS versions there are permission issues with writing to the subdirectory.

Attachments:
BMOI_Connector.zip


From: Marbleman
28 Jan   [#12] In reply to [#11]
Thanks Michael.
From: KENMO
28 Jan   [#13] In reply to [#5]
Sorry in the delay in replying but it appears Mr Gibson posted the link.

Cheers

Ken
From: mk (MARKY)
29 Jan   [#14] In reply to [#11]
Hi Michael,

For Blender it's OK but for MoI on my MacBook M2 pro it's not.
There are 3 files in each folder?
03 - 05 after I open MoI.

Marek

Image Attachments:
01 Commands.jpg  02 Startup.jpg  03.jpg  04.jpg  05.jpg 


From: Michael Gibson
29 Jan   [#15] In reply to [#14]
Hi Marek, there are 3 files to put in the commands folder and 1 file to put in the startup folder.

When the .zip file is unzipped, there will be 3 files inside MOI3D/Commands - "bmoi_export_FBX.js", "bmoi_Import_OBJ.htm", "bmoi_Import_OBJ.js".
These 3 go into ~/Library/Application Support/Moi/commands like you show. These should not go into ~/Library/Application Support/Moi/startup so remove them from there.

The 4th file to copy is "97 BMoi.js" in the .zip file under MOI3D/startup - this is the one to put in ~/Library/Application Support/Moi/startup , this is what makes the buttons show up in the bottom toolbar.

When you do the export from MOI you need to select the objects that you want to transfer. If you don't then the "Nothing is selected" error will show.

- Michael
From: mk (MARKY)
29 Jan   [#16] In reply to [#15]
Hi Michael,

Sure enough, now all is fine after following your answer.
Thanks a lot.

Marek
From: Michael Gibson
30 Jan   [#17] In reply to [#15]
Updated Mac version attached above:
http://moi3d.com/forum/index.php?webtag=MOI&msg=11634.11

Updated Mac version to put temp files directly in /tmp instead of in subdirectory since some on some OS versions there are permission issues with writing to the subdirectory.

- Michael
From: KENMO
27 Mar   [#18] In reply to [#17]
Love this plugin. It is a must have.