About this site
ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
Comments
Advanced spline sub-object manager
Here's a great plugin for managing subobject selections and material IDs for editable splines.
SubSpline: http://www.splinedynamics.com/subspline/
www.splinedynamics.com
.
Easy
If segIdx is the index of the segment
for open spline the knots always are:
knot1 = segIdx
knot2 = SegIdx + 1
For closed spline:
last segment have knots
knot1 = 1
knot2 = segIdx
the rest segments have knots idx the same as open spline
Tools and Scripts for Autodesk 3dsMax
ok
but how to access to segments without selecting splines (subobject 3)?
.
What do you mean?
Tools and Scripts for Autodesk 3dsMax
getSegSelection
- to get the segment you want to select the spline :(
- чтобы получить сегмент нужно выделить сплайн :(
I need this for my Subobjects Converter
Мне это надо для моего Subobjects Converter
.
- to get the segment you want to select the spline :(
No. Create a spline, select some segments. The name of the spline should be Shape001. Deselect the spline and run this code:
In the listener will be printed the indexes of the selected segments.
If you want to know how many splines the Shape001 have then this will gives you the answer:
numSplines $Shape001
So, using the following code will gives you the selected segments of all splines in the Shape001 when the Shape001 is not selected.
Tools and Scripts for Autodesk 3dsMax
As he himself did not guessed
This is what need.
Kostadin, Thank you so much!