Notifications
Clear all
[Closed] Storing co-ordinates of vertices of a spline
Jul 25, 2005 8:09 am
hello all
I am trying to write a script that allows me to store the co-ordinates of the first and last vertices of a spline. Can anyone point me in the right direction.
regards
Nebille
5 Replies
Jul 25, 2005 8:09 am
Hi Nebille,
Store them where?? what do you want to do with them.
fstpnt=getknotpoint $myspline 1 1
lstpnt=getknotpoint $myspline 1 (numknots $myspline)
Cheers,
Josh.
Jul 25, 2005 8:09 am
Hi
I just need to store the x ,y, z cords in seperate variables.
regards
Nebille
Jul 25, 2005 8:09 am
thanks for the script it worked well.
I wonder if you or anyone knows of a way to break the info down futher so i can store the x and y cords in seperate variables.
many thanks
Nebills
Jul 25, 2005 8:09 am
of course!
I think it would help if you did some of the tutorials in the maxscript help. It would clear up a lot of the easier questions you have and probably wouldn’t take that long.
fstpnt=getknotpoint $myspline 1 1
x=fstpnt.x
y=fstpnt.y
z=fstpnt.z
Good luck,
Josh.