ScriptSpot

Script

Instant Meshes Bridge

By Swordslayer · Credited author: Vojtech Cada · 2016-08-10

Version
0.03a
Version requirement
3ds Max 2010
Votes
9
Description

A bridge from 3ds max to instant meshes. Without leaving max interface, it exports, remeshes and imports the remeshed object back based on the parameters in the dialog.

instant meshes bridge

Additional Info

Installation: It can be run from any location (Maxscript -> Run Script...). If you want to put it in toolbar, menu or quadmenu, you can create a macroscript for it using Macroscript Creator. At first run, the script will ask for a location of your instant meshes executable - this will only happen once, provided that you don't reinstall max/remove the executable from the path.

Attachments

Tags: topology, bridge, connect, Retopology, Remesh, retopo

Comments (17)

Whoa

fil47 · 2016-08-26

Wonderfull script... Thanks a lot for your hard work and for sharing ^^

As Modifier in the modifier stack

OccultArt · 2016-08-17

Can this be implemented as a modifier in the modifier stack without exporting and importing? Then everything could remain editable. This could work very well for booleans instead of exporting to Zbrush and using to merge the shapes and create rounded corners.

Swordslayer · 2016-08-22

well, the source of the application is available so it is possible - for someone with the skills of writing C++ plugins and enough time at hand

TitusLVR · 2016-08-11

@ Fajar - yep i have tryed as admin and change temp folder too - doesn't help. But with the latest version with send to IM button i have this(in max 2012):
http://imgur.com/a/2QUHM

and it creates an input.obj file. (remesh button doesn't work).

PS: mesh is just a standard box.

Swordslayer · 2016-08-11

@TitusLVR - when you try to import the input.obj file back in max, does it import back correctly? Also, could you attach a screenshot of the export obj and import obj settings in max 2012?

my fault

TitusLVR · 2016-08-12

i have checked my settings of obj exporter, all ticks were unchecked , now everything work. sorry and thanks for this bridge.

fajar · 2016-08-11

@Swordslayer

Please be my guest...I'm OK with it. I just being helped here ,knowing a little piece of wonderful software...and no need any credit tho.:cheers

little tiny bit...maybe we could add this line tho, in on button pressed to clear the temp file....


if (doesFileExist meshAppPath) then
		(
			try (deleteFile outputFile ) catch(format "% is not exist" outputFile)
			try (deleteFile inputFile ) catch(format "% is not exist" inputFile)
..........

)--end button pressed

Thanks.

@titus : do you run as admin...if no then maybe the cause is that...may be you can change the temp dir tho....

Doesn't work

TitusLVR · 2016-08-11

It can't export and import an object. Temp folder is empty. 3dsmax 2012 win10.

UPD: same PC , 3dsmax 2015 - script works fine.

Swordslayer · 2016-08-11

Thanks for reporting that, though I cannot reproduce it in its entirety. For some reason, the default import ObjScale in max 2012 is 0.0, so I fixed that part. If you still have problems, could you attach a picture of obj import/export settings in max 2012?

fajar · 2016-08-11

Damn i've been looking around for something like this, could you share the exe files or where to download it without compiling it first?

Thanks

---edit

I've got it now.....

--added
i've modified a little of your script to be able to locate where "instant meshes.exe" is.

Thanks

Attachments

Swordslayer · 2016-08-11

Good idea, I've included it in the updated script - is it okay with you? And do you want to be credited as 'fajar' only?

Is this like ZRemesher ?

vusta · 2016-08-11

(the InstantMeshes that is)

Swordslayer · 2016-08-11

Sort of, just standalone and easily controllable via commandline. For more complex models, you'd still want to use the UI but sometimes when you just want to have an approximate mesh fast which is where this script comes in handy. Have you seen the presentation video?

yeah think so...but it didn't jog my mem straight away when

vusta · 2016-08-11

i saw this...

now you've probably seen my MCG Arches...that has its limits with the QuadrifyMesh so I was hoping this would provide a way to get out of a tight spot...even tho right now as it has to export/import...but still...if it's better than QuadrifyMesh...it's worth it...

Thanks very much.

Swordslayer · 2016-08-11

Instant Meshes works better when you want to get a mostly quat topology on some complex surfaces that are already quite dense - quadify modifier totally flips out when you try to use it to simplify mesh. And if the shapes are organic, it's perfect. However, when you have a unsubdivided surface with sharp edges like your arches, the quadify modifier will keep your edges and add a row of quads along them while Instant Meshes will approximate it trying to get a nicer meshflow overall while sacrificing the exactness of original edges - see the attached image, quadify at the top and instant meshes below.

Hard edges

cptSwing · 2016-08-25

Ah, that's a bit of a shame. Wasn't there a way to preserve edges in IM (I've only played around a little)? Possibly transferring them as smoothing group splits or edges creases from Max would work?

Either way, great bridging script - thanks so much.

mad · 2016-08-10

wow i dont know about this great peace of software i must test it :) thaks