please tell me
Forum topic · General Scripting
How to select Knots Using Segment of Spline? Or How to convert selection Segment to Knots?
By Nikolay Litvinov · 2015-03-01
Forum topic · General Scripting
By Nikolay Litvinov · 2015-03-01
please tell me
Comments (7)
Comment policy
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/
.
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
ok
but how to access to segments without selecting splines (subobject 3)?
.
What do you mean?
- 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:
So, using the following code will gives you the selected segments of all splines in the Shape001 when the Shape001 is not selected.
As he himself did not guessed
This is what need.
Kostadin, Thank you so much!