Hello!
I have a simple but important question to ask you. I'm studying a bit Maxscrpit and I have this problem:
I have a rollout with a button called "create & Move". I press the button and I create a sphere called Ball_01 to position [0,0,0]. All Ok...
Now, press the button again, I want create a new sphere (Ball_02) to [50,0,0] units along the axis X from a Ball_01. Press the button again and I create new sphere (Ball_03) to [100,0,0] along the axis X from Ball_01 and so on...
Similar to the loop in MaxScript Help:
------------------------------------------------------------------------------------
for i = 1 to 5 do
(
box_copy = copy mybox
box_copy.pos = [i * 50, 0, 0]
)
------------------------------------------------------------------------------------
I write this simple example, but I do not know how to go:
------------------------------------------------------------------------------------
fn create Sp = (
s = Sphere()
s.name = uniquename "Ball_"
)--- end create _sphere
rollout test "Move Sphere"
(
button b "Create & Move"
on b pressed do create Sp
)
createdialog test
------------------------------------------------------------------------------------
How To?
Thank you for your cooperation :)
Ciao
Michele71
By Michele71 · 2009-12-14
Anubis · 2009-12-15