Notifications
Clear all

[Closed] Storing co-ordinates of vertices of a spline

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

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.

Hi

I just need to store the x ,y, z cords in seperate variables.

regards

Nebille

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

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.

Thanks josh

i will look at those tutorials

regards

Nebille