jifman
02-01-2008, 12:39 AM
hi everyone, this is problay a really simple problem im having, but i cant seem to make a new pyramid object with the name incuding the loop varibal in it.
heres the code i've got so far
For index = 1 to 5 Do(
name_number = index as string
Pyr(index) = Pyramid widthsegs:1 depthSegs:1 heightsegs:1 width:25 depth:25 height:50 mapcoords:on transform:(matrix3 [1,0,0] [0,0,1] [0,-1,0] [3.11111,0,-1.77778])
Pyr(index).name = "Pyr " + name_number
)
(index) = 2
move Pyr(index) [10,10,10]
any help would be much appreached.
also if anyone can tell me how to rotate an object so-many degrees on the Z axis, would be much appreached.
cheers
heres the code i've got so far
For index = 1 to 5 Do(
name_number = index as string
Pyr(index) = Pyramid widthsegs:1 depthSegs:1 heightsegs:1 width:25 depth:25 height:50 mapcoords:on transform:(matrix3 [1,0,0] [0,0,1] [0,-1,0] [3.11111,0,-1.77778])
Pyr(index).name = "Pyr " + name_number
)
(index) = 2
move Pyr(index) [10,10,10]
any help would be much appreached.
also if anyone can tell me how to rotate an object so-many degrees on the Z axis, would be much appreached.
cheers
