Notifications
Clear all

[Closed] How To Create Multi Dimention Point Array With Maxscript

Hello , my name is Nam , i come from Viet Nam , can i ask you a question , im a newbie in maxscript
How to create a point array with 2 dimenion with maxscript ?
Thank you for your help
Best regard

6 Replies
(
Array1D = for x=1 to 10 collect [ x, 0, 0 ]
Array2D = for x=1 to 10 collect for y=1 to 10 collect [ x, y, 0 ]
Array3D = for x=1 to 10 collect for y=1 to 10 collect for z=1 to 10 collect [ x, y, z ]
	
format "1D >> %
" Array1D[1]
format "2D >> %
" Array2D[1][1]
format "3D >> %
" Array3D[1][1][1]
)
1 Reply
(@alexnguyendesign)
Joined: 10 months ago

Posts: 0

im sorry , im not good at english , my mean is: ” how to creat points ” :
for i = 1 to 6 do
(
a = point()
a.pos.x = 500 * i
)
for k = 1 to 6 do
(
b = copy a
b.pos.y = 300 * k
)
but it is wrong

What result do you expect?

1 Reply
(@alexnguyendesign)
Joined: 10 months ago

Posts: 0

thank for reply , i need create some point with 2 variable

?

for x=1 to 6 do for y=1 to 6 do point pos:[ x * 500, y * 300, 0]  
1 Reply
(@alexnguyendesign)
Joined: 10 months ago

Posts: 0

thank you very much