POV-Ray : Newsgroups : povray.binaries.animations : The Eternal Student - Question again: Loop Server Time: 14 Dec 2018 00:45:27 GMT
  The Eternal Student - Question again: Loop (Message 1 to 1 of 1)  
From: Sven Littkowski
Subject: The Eternal Student - Question again: Loop
Date: 28 Jan 2018 23:15:23
Message: <5a6e598b$1@news.povray.org>
For some reason, my loop doesn't produce many items as intended, only
one. And I am sure, as usual I am not seeing the forest because of all
the trees in front of my eyes!  :-)


#declare MyRandom = seed (27053);
#local MyLength   = int(20*rand(MyRandom));   // Anzahl der Glieder
#local MyX        = rand(MyRandom)*45;
#local MyY        = rand(MyRandom)*01;
#local MyZ        = rand(MyRandom)*10;
#local MyElement  = 0;

#while (MyElement<MyLength)
 object { Element translate < 0.0, 0.0, 0.45 > rotate < MyX, MyY, MyZ > }
 #local MyElement=MyElement+1;
#end


Post a reply to this message

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