[Closed] looking for scripts: verts->spline and spline->bones
hi there,
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!
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 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.
RH
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?
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.
RH
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.
thx!