Notifications
Clear all

[Closed] Nurbs Editing with maxscript

Hello,
I am trying to make a script to edit the Nurbs objects in 3dsmax.

What i want to achieve is

1- Create an offset from a nurbs curve
2- Create a Ruled Surface using two nurbs curves.

I searched here and there in maxscipt help and on internet and found that the Nurbs classes can do this. But i did’nt find any exemple on how to use it …

So here are the classes i am interested in :

NurbsOffsetCurve
NurbsRuledSurface

Each one has Constructors and properties.

I was able to create a NurbsSet with :
“S = getnurbsset $” and this give me something like that <NURBSSet:0x0000b258>

after that i use “obj = getObject S 1” this give me <NURBSCVCurve:0x0000648c>

And after that i try to apply NurbsOffsetcurve but i dont know what to write…

NurbsOffsetCurve has properrties :
.parent
.parentID
.distance

So i wrote :

NursOffsetCurve parent:1 distance:0.5
but this give me a new ID <NURBSOffsetCurve:0x0000654c>
how can i link all this stuff to get a result ?

I hope i was not to confusing
Thanks a lot for you answers !