POV-Ray : Newsgroups : povray.general : step by step : Re: step by step Server Time
10 May 2024 16:54:00 EDT (-0400)
  Re: step by step  
From: jr
Date: 20 Dec 2023 10:25:00
Message: <web.658306faa8689bc37f6d9cf76cde94f1@news.povray.org>
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.


Post a reply to this message

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