Notifications
Clear all

[Closed] someone can give the full code?

today I see a article on internet as follow show ,can some full out the code for me, thanks

 i create a NURBSPointCurve in a max script in pseudocode like 

ni = 0 
nset = NURBSSet() 
....begin of loop... 

npoint = NURBSPointCurve name:"some name" numPoints:(nlength+1) 
if (ni == 0) then 
nip = NURBSIndependentPoint [x,y,z] 
else 
nip.pos = [x,y,z] 
ni += 1 
setPoint npoint ni nip 
) ...end of loop... 
appendObject nset npoint 
NURBSNode nset 

i'll tell you it works damn well. but once i view the curve it is just a 
curve. i would like it to be thicker in the viewport and renderable. i 
can manually goto the modifier tab and see the NURBS Surface. under that 
surface, i can manually goto Rendering and check Renderable and "Display 
Render Mesh" and under Curve Approximation i want to change the 
Interpolation Steps from 8 to 4 or 6, uncheck Adaptive, and probably check 
Optimize. 

how do i set these values in a script? i don't see the object that contains 
this values in the help file. 

lucas 


. 


4 Replies
 JHN

Can you show us what you tried already? It’s always hard to get motivated to help people if they want you to create a complete script from a source that is not there own, and they don’t show to have done anything themselves yet. So please provide the code you tried so we can help to improve it.

-Johan

until now I have no ideas about it so I come here for help

Edit: Correction, there is no access to the Interpolation values of a NURBS Curve. Also, next time post the full code and not code that has been augmented by you using non-maxscript comments, etc.

-Eric

thanks for reply
and I will do as you say next time:p