View Full Version : looking for scripts: verts->spline and spline->bones
01 January 2004, 12:32 PM
for a current project that is done in max i'm missing a few things that i have started to love in mirai.
just wondering if anyone knows of scripts to create a spline from selected vertices on the surface of a mesh and also one that lets you create bone chains on splines where the number of segments determines the number of bone objects.
any input appreciated!
01 January 2004, 09:30 PM
The spline bones thing isn't all that tricky, in fact I'm attaching a simple macroscript that does a rudimentary job of it. As for creating a spline from selected vertices, that proved to be more difficult that it initially seemed. Maxscript doesn't store selected vertices in the order they were picked, so it's nigh impossible to determine what path for the spline to take. If you need to create splines that follow along a surface, I'd suggest using a tool like Draw Spline (http://www.scriptspot.com/download.asp?ID=119) and just sketch the spline on. You sacrifice exact knot placement, but it does get the job done!
Rename the attached file extension to .mcr and place in your UI/macroscripts directory, then restart Max. To add the macro to your interface, go to Customize User Interface and find the script in the "RHTools" category.
01 January 2004, 09:39 PM
hey, thanks a lot! i'll try this out immediately. :)
as for the verts->spline thing - in my case it would be really helpful to create the spline so that it exactly follows the vertices on the mesh. is there the possibility to snap spline vertices to those of a mesh during or after creating them?
01 January 2004, 09:49 PM
Sure, just turn on snapping and set it to snap on vertices. If you right-click the snap button, you get a menu of what kinds of things to snap to.
02 February 2004, 07:06 AM
ok, i've tried your script and - rudimentary or not - it does the job.
i prefer the simple stuff over those huge scripts with many options that are rarely used.
01 January 2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.