PDA

View Full Version : someone can give the full code?


flyingaway
03-18-2009, 03: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]
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


.

JHN
03-18-2009, 09: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.

-Johan

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

PiXeL_MoNKeY
03-19-2009, 04: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.

-Eric

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

CGTalk Moderation
03-20-2009, 01: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.