POV-Ray : Newsgroups : povray.general : step by step : Re: step by step Server Time
9 May 2024 19:41:49 EDT (-0400)
  Re: step by step  
From: David Kraics
Date: 20 Dec 2023 10:40:00
Message: <web.65830a85a8689bc387b92d44a57e0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "David Kraics" <bar### [at] aolcom> wrote:
> > Ok. bear with me. I know I should know this, and it is really basic, but between
> > my meds and my state of mind, I can't think of it.
> >
> > I created this object
> > #declare floorframe = box{<0.283031,-0.001781,-0.001781>,
> > <0.283031,0.001781,0.501781>}
> >
> > and starting at
> > object{floorframe translate<0,1.570883,0>}
> >
> > I am placing them downwards in increments of 0.032059
> > until it stops at 0 or thereabouts (not below).
> >
> > I actually crunched out 20 numbers until I remembered there is a way to do it
> > using steps, but God help me I can't remember how. Can you help me out?
>
> guessing you're thinking of  '#for' loop.
>
> <https://wiki.povray.org/content/Reference:Conditional_Directives#The_for_Directive>
>
>
> regards, jr.

Ok I tried with

#for (ff,1.570883,0,-0.032059)
object{floorframe translate<0,ff,0>}
#end

and there is no object. I thought that maybe it just moved one object downward
but it doesn't show at all.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.