Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Script to connect multiple vertexes of a spline ?

Script to connect multiple vertexes of a spline ?

Anonymous
Not applicable
583 Views
3 Replies
Message 1 of 4

Script to connect multiple vertexes of a spline ?

Anonymous
Not applicable

Hello Guys,

I need a little help with script creation and I thought maybe anyone could help.

 

I want to create a script that's capable of creating multiple splines (or connecting multiple verts of a spline) in a given axis of aligned vertexes.

 

For example, in the image bellow, I need it to close the selected spline to form 3 rectangles. I thought maybe I could make this happen by telling the script to connect the vertexes that are aligned in Y axis in this exemple.

 

And this is what I got so far, I can tell Maxscript to enter in the sub_object and enter the connect modifier. But I have no clue how to do the rest.

Maybe a different method could also work

 

script spline creation.JPG

 

Could anyone help ?

 

It would be very handy to me and maybe to others too 🙂

0 Likes
584 Views
3 Replies
Replies (3)
Message 2 of 4

denisT.MaxDoctor
Advisor
Advisor

I will be surprised if someone publishes here a complete and correct solution for mxs, since the solution for the task is not trivial, and needs a pretty good max scripting skill.

0 Likes
Message 3 of 4

Anonymous
Not applicable

Thanks for your time Denis.

Do you have any clue where could I start searching?

or yet, any other forum for scripting in Max?

 

I'm not searching for a complete solution, but maybe anyone that could point me in the right direction and teach me how to fish 😉

 

Regards

 

🙂

0 Likes
Message 4 of 4

denisT.MaxDoctor
Advisor
Advisor

i suggest you to ask this question on CGTalk where more enthusiasts are ready to share the code