XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : someone can give the full code?

03-18-2009, 02:55 AM
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]
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

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



03-18-2009, 08:15 AM
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.


03-19-2009, 12:24 AM
until now I have no ideas about it so I come here for help

03-19-2009, 03:23 PM
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.


03-20-2009, 12:34 AM
thanks for reply
and I will do as you say next time:p

CGTalk Moderation
03-20-2009, 12:34 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.