ScriptSpot

MCG

MCG Spline Conform

By vusta · 2017-02-24

Version
1.05
Version requirement
2016
Other software required
2016+Ext1/2+SP3, 2017
Date updated
2017-02-26
Votes
9
Description

Get your spline to wrap onto a mesh or multi-meshes... Yes it is a bit rough around the edges, so it is what it is...

ver 1.01: bit more stable when tumbling around...

ver 1.02: now shooting rays are from Spline Normals. Also for ortho projection mode, say from front on or top down, you can use World Axis for shooting direction. When there's no Hit, you have option to leave knots where they are...or just shoot to the nearest verts of the mesh. Tumbling issue is still there but is now less likely...so just keep an eye out for the BBox.

 ver 1.03: now supports Multi-curve in a spline

ver 1.04: for verts with no Hits, have option to Remove. It's far from perfect, but it's something there for you to work with, maybe manually move a few knots here and there with an Edit Spline (see large pic below).

ver 1.05: added Progress.......and that's a wrap folks....

ps: I found that put a Sweep on with Banking OFF seems to work best in most cases..

Videos
Attachments

Tags: MCG Spline Conform

Comments (18)

sunman · 2017-07-11

is the MCG Spline Conform able to generate a spline around a bodypart what simulates 100% the behavior of a real world measuring tape? So would it bridge over "valleys"?

If not, could you implement that function? I would also pay for the development, cause I would use it commercial. When a 3ds max plugin would be even faster then a MCG then I would prefer a plugin development.

asymptote · 2017-06-12

Looks cool and very useful, should this work on Max 2016 with EXT 1 & EXT 2 + SP4?

I can't get it to work, should I need to downgrade to SP3 ?

thx.

EDIT: Ok the answer is yes, I just downgraded to SP3 and all is as it should be.

wow weee...

vusta · 2017-06-13

so SP4 broke it ??? I never knew that...(didn't even know there was there was an SP4)

@ vusta

asymptote · 2017-07-11

Not sure, I may have been using it wrong in the first place :)

It wasn't until I uninstalled SP4 that I realised you click in an empty space to create, then go to the command panel to configure, I was initially clicking directly on a spline.

yeah...it takes a bit of geting used to...

vusta · 2017-07-12

that's just how MCG is...because there's no default 'icon'...you click somewhere in space to create the MCG object...but you can't see it !!! Frustrating....

You CAN see the object in the Select by Name dialog tho...also if you have your transform gizmo showing...then you can see the 'arrows' (or rings, whatever) where you clicked...

Suggestions for next version :)

eugenio · 2017-03-10

Nice tool man! I was thinking how to improve the no hit vertices and I have some ideas:

1) How about for vertices with no hit in the middle of the spline, to interpolate them between prev/next that have hit the mesh? Since there might be a sequence of vertices with no hit, maybe store them in a separate array to fix them in a second pass.

2) For vertices in the start/end of the line, to extend them tangent to the last hit vertex. If possible, to maintain the segment length they previously had.

It ain't easy to do I guess, but would produce better results.

No. 2 first

vusta · 2017-03-11

well to simplify thing, for the 1st/last verts tangents, I actually stole them from their neighbours, ie. 2nd and 2nd last...so Done !!!

No.1, Well I did think about interp/lerp, and even some sort of tension, gravity affected setting, however there is still a problem, like in a circle surround a guy's legs...a vert on the far left may hit the right thigh and so interp would be weird...hence you see the crisscrossing effect between the legs...

Maybe if the raycasting logic gets a bit more advanced then I can make use of..but...who knows what the future of MCG is...lately, I haven't heard jack from the devs...then the subs news recently, I'm
a bit disillusioned tbh.

bad memory..

vusta · 2017-03-10

no not your RAM...I mean my bad memory in my head...
I think the INODE error means you need the Extension (either 1 or 2)

Because you are on 2016, you need it, 2017 doesn't.

Once you get rid of the first error, I think the 2nd one would compile.

(ps: INode Array that is, originally just 1 INode works fine, then the Extension gives you INode Array at some later stage)

Alaa alnahlawi · 2017-02-25

Super cool

ver 1.04

vusta · 2017-02-26

option to Remove verts with no Hits

(bring out the gimp!!!)

Attachments

obaida · 2017-02-25

Very Very important add for 3dsMax , thanks hope it'll work fine in all cases
and of course if you can make it for 3dsMax 2014 it'll be more than welcome.
Thank you , Best Regards.

ver 1.03

vusta · 2017-02-25

Multi-curve support.

Unfortunately, Max versions earlier than 2016 do not know what MCGs are....no can do...

and I'm not a scripter so there's very little chance I could do anything like this with mxs.

ver 1.02

vusta · 2017-02-25

...bit more advanced...

bloody Normalize Spl.

vusta · 2017-02-24

I've since discovered it's the Normalize Spl. that is causing the screen to disappear when tumbling around ...arrrgggg... dodgy !!!!! At least I can blame it rather than my MCG now...

Swordslayer · 2017-02-24

If you can, submit a Bug report for that, please. Thanks :)

well it's sorta 50/50

vusta · 2017-02-25

the Normalize Spl. at certain length/accuracy can produce weird bunching up, best seen with a Sweep on a Normalize Spl.

If there's these weird bunching up, it sends my MCG into a tailspin....

luxxeon · 2017-02-24

You certainly get my vote on this one. This should come in quite handy for a variety of techniques. Thank you.