Notifications
Clear all

[Closed] 3DSMAX cut array in 1/2?

I need to divide 1 array of objects into 2 parts and each part can create a new array with its own name.

2 Replies
I can't understand this part
`and each part can create a new array with its own name`
(
	for i = 1 to 10 do box()
	
	arr01 = objects as array
	
	half = arr01.count / 2
	
	arr02 = for i = 1 to half collect arr01[i]
	arr03 = for i = (half + 1) to arr01.count collect arr01[i]
	
	format "arr02: % \n" arr02
	format "arr03: % \n" arr03
)

Thank you very much! This is exactly what I’m looking for!