ScriptSpot home

NURBS 2 Spline

Downloads

3ds Max compatibility
See original listing claims
Report a problem
Community reviewsNo reviews yet.

Listing details

From original requirements
3
Original version requirement
3
Author’s update date
Legacy votes
14
Listing created
How compatibility works

Compatibility comes from the author’s supported range or requirements in the original listing. A tested version records what the author tried.

“2020 unconfirmed” in the catalog means support for 3ds Max 2020 is still unknown.

Community reports record successful tests on specific releases.

More by this author

Description

Converts NURBS curves in Spline Shapes.

Comments (5)
Hernan Rodenstein

Script improved and works in newer 3dsmax versions

Hi guys,
I modified the code of this script to make it work in 3ds max 2012 to 2018.

Now it supports multiple NURBS curves conversion with a single click.

http://www.splinedynamics.com/free-3dsmax-scripts/

Enjoy!

Stephen

Help!

Object not found!

I need this script - does it work in max 2017?

Mojtaba Samimi

To correct the bug of your algorithm use my simple method.
(You should reverse your order of node creation!)

Here is a question Why the program is working only on the CVcurves and it is not working on the POINTcurves?

OBJ = selection[1]
NS = getnurbsset OBJ #relational
sp = splineshape()
for i = 1 to NS.numobjects do(
minv = NS[i].parameterrangemin
maxv = NS[i].parameterrangemax
addnewSpline sp
for j = 0.0 to 1.0 by 0.1 do(
addknot sp i #smooth #curve (evalpos NS[i] (((maxv - minv) * j) + minv))
)
if NS[i].isclosed then close sp i
)
sp.rotation = OBJ.rotation
sp.scale = OBJ.scale
sp.pos = OBJ.pos
Updateshape sp

Reply to Mojtaba Samimi
Wassim Jabi

How can you tell if a NURBS is a surface

In the code above depending on the structure of the NURBS, NS[i] can be a point, a curve, or a surface. How can one tell which is which in a NURBSSET? I tried classOf but it gives me either CVSurf or PointSurf for surfaces.. is there a way to test for simply "a surface" because otherwise NS[i].uParameterRangeMin fails (if it is not a surface). Thank you.

qlboy

very ok