Thursday, March 15, 2007

Thoughts

Does anyone have any suggestions on how to manipulate this script in order to make the pyramids vary in size? They currently vary slightly as the script progresses by using the "i" variable, but it doesn't seem to be creating much differentiation.

p = pyramid width:30 depth:0 height:20 widthsegs:2 depthsegs:2 heightsegs:2
convertToMesh p
for i = 1 to 20 do

(
animate on
(
at time (i * 5)
(
j = instance p pos: [0,i*10,0]
rotAngle = angleAxis (i*25) [0,1,0]
rotate j rotAngle scale j [i/5,i,i/5]
for i = 1 to getNumVerts j-8 do
(
b = pyramid width:i height:i depth:1
rotAngle = angleAxis (i*50) [0,1,0]
rotate b rotAngle
vert = getVert j i
b.pos = vert )
delete j
)
)
)
delete p

-Skylar

No comments: