|
 |
"Bald Eagle" <cre### [at] netscape net> wrote:
> "David Kraics" <bar### [at] aol com> wrote:
>
> > Is there some kind of loop I can use to do this for me, and maybe return a value
> > so I can add new things on top of the stack?
>
> Of course.
>
> Your level has a ymin and a ymax. ymax-ymin equals your height.
> do a loop, instantiate your object, and then translate each subsequent object in
> the y direction by the incremented height.
>
> #declare Ymin = min_extent (Object).y;
> #declare Ymax = max_extent (Object).y;
> #declare Height = Ymax-Ymin;
>
> #for (Level, 0, 5)
> object {Object translate y*Level*Height}
> #end
>
>
> (untested code)
>
>
> - Bill
So lets say the height of the object is .803, The object is called Floor, and I
want to stack 66 of them. Could you reshow the code with the inputs I gave, I'm
trying to understand this
Post a reply to this message
|
 |