MoI discussion forum
MoI discussion forum

Full Version: Moi <> Blender !

Show messages:  1-20  21-40  41-54

From: surferdude
30 Nov 2021   [#41] In reply to [#40]
Hey Metin,

Do you have issues with normal smooth after Importing models through OD? OD imports models without smooth... the standard method of importing works.
From: surferdude
30 Nov 2021   [#42]
I've found a way to import objects to Blender without OD script.
You have to create two scripts, one for Blender and Moi.

I'm not a programmer, I've watched a couple of tutorials and modified OD script.

 

Blender 3.0 -

Run it and then assign a shortcut in your search bar.

bl_info = {
"name": "Paste From External",
"version": (1, 0),
"blender": (3, 00, 0),
"author": "Dude",
"description": "Paste from an external Object of other applications / instances to a current mesh",
"category": "Object"
}

import bpy

class PasteFromExternal(bpy.types.Operator):
"""Object Cursor Array"""
bl_idname = "object.paste_from_external"
bl_label = "Paste From External"

def execute(self, context):
bpy.ops.import_scene.obj(filepath="C:\Program Files\MoI 4.0\commands\ImportMoi.obj")

return {'FINISHED'}

def menu_func(self, context):
self.layout.operator(PasteFromExternal.bl_idname)

def register():
bpy.utils.register_class(PasteFromExternal)
bpy.types.VIEW3D_MT_object.append(menu_func)

def unregister():
bpy.utils.unregister_class(PasteFromExternal)
bpy.types.VIEW3D_MT_object.remove(menu_func)

if __name__ == "__main__":
register()

Moi V4 -

1. Create a .js script with a name "CopyToBlender.js"
2. Place that script to - C:\Program Files\MoI 4.0\commands
3. Assing a shortcut, for example - Ctrl+Alt+C "CopyToBlender"

var comPath = moi.filesystem.getCommandsDir();
var obj = comPath + "ImportMoi.obj";
//Export
moi.geometryDatabase.fileExport( obj, 'NoUI=true;Angle=3;MinLength=0.1' ); //also try: Output=ngons | quads | triangles
From: Flowgun
30 Dec 2023   [#43]
I updated this addon to be compatible with Blender 4.0+ and I made the installation more straightforward:

https://github.com/Flowgun/BMOI_Connector/tree/master
From: Metin (METIN_SEVEN)
30 Dec 2023   [#44] In reply to [#43]
Cool, thanks a lot! Great add-on.
From: Metin (METIN_SEVEN)
30 Dec 2023   [#45]
Installed it, works great. Maybe it's good though to mention in the installation instructions page that, depending on folder permissions, it only works if you first create the BMOI exchange folder.

On Windows, after installing everything you'd need to first create a folder named C:\Users\username\AppData\Local\Temp\BMOI , or you'll get a permission error message.

Thanks again! This makes exchanging objects between MoI and Blender pleasantly convenient.
From: Flowgun
30 Dec 2023   [#46] In reply to [#45]
ah yes! thank you for the suggestion. I use Autohotkey to verify if the folder exists or not and create it. With Autohotkey, I also map PageUp in either software to automatically send the export command, open/activate the other software, and send the import command. Basically just one key press to move between both.
From: Metin (METIN_SEVEN)
30 Dec 2023   [#47] In reply to [#46]
Sounds good!
From: Barry-H
31 Dec 2023   [#48]
Hi,
I'm getting this error when trying to import from Blender 4 to Moi .
I don't get it when importing from Blender V3.
Any ideas
Cheers
Barry



Image Attachments:
Screenshot (26).png 


From: Michael Gibson
31 Dec 2023   [#49] In reply to [#48]
Hi Barry, can you post the .obj file? And maybe also the modified ImportObj script you're using too?

One guess is maybe the issue is if you have n-gons in the mesh. You might see if you can process any n-gons in Blender into triangles before making the .obj file out from Blender.

Note that it's generally not advisable to convert a dense polygon mesh file into CAD as an individual trimmed surface for every separate poly face like the ImportObj script is doing. That's why it's not part of the default import options.

- Michael
From: Barry-H
2 Jan   [#50] In reply to [#49]
Hi Michael,
I export to blender with n-gons no problem.
Sometimes I import the models back to Moi after some mod in Blender.
Perhaps that's the issue (n-gons) will try to change export from blender with triangles.
Will let you know the if that resolves my issue.
Cheers
Barry
From: krass
7 Jan   [#51]
I wonder how realistic it is to create a bridge between the MOI and a blender of the same type as the plasticity one (in terms of functionality)?
What I saw is impressive in its capabilities...
From: KENMO
7 Jan   [#52] In reply to [#51]
Seems to work fine on quad models but but not on ngons as I get this error as mentioned earlier in the thread.





With this plugin I can not export my MOI models to Blender for some finessing or retopo via Quad-Remesher and then via the Blender-3DCoat plugin into 3DC for uv mapping and texturing.

Cool and many thanks...

Now if only there was a Sketchup to MOI script (fingers crossed and 100 Hail Marys already prayed)....

Image Attachments:
MOI-Blender.JPG 


From: KENMO
7 Jan   [#53] In reply to [#51]
What functionality does the Plasticity to Blender have? I have not played with Plasticity in several months, since my trial expired.
From: krass
8 Jan   [#54] In reply to [#53]
More details about the bridge between plasticity and blender here
https://youtu.be/xOftfx05l14?si=dBXViDLFaymCkYBY

and here - at the very beginning
https://www.youtube.com/live/FGLLv-LG-Oc?si=4UTcq-9kynsn9UC3

Show messages:  1-20  21-40  41-54