Spline Material ID

Hello!

I need a script to assign predefined id to selected segments of a spline.
Then i want just assign it to a keyboard combination to set IDs on the fly.

This worked for edit poly:

MacroScript mtl_id_1 category:"ID" buttonText:"mtl id 1"
tooltip:"mtl id 1"
(
$.modifiers[#Edit_Poly].SetOperation #SetMaterial
$.modifiers[#Edit_Poly].materialIDToSet = 0
$.modifiers[#Edit_Poly].Commit ()
)

I need this, but for spline.
Please, Help a noob out.

PS. There is very little resources about spline editing. Maxscript listener does not hear spline editing...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rode3d's picture

Advanced spline sub-object manager

Here's a great plugin for managing subobject selections and material IDs for editable splines, wich includes a tool to assign predefined material ID sequences to selected splines.

SubSpline: http://www.splinedynamics.com/subspline/

rode3d's picture

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.