POV-Ray : Newsgroups : povray.advanced-users : variables in sdl : variables in sdl Server Time: 6 Jul 2008 09:23:45 GMT
  variables in sdl  
From: [GDS|Entropy]
Date: 23 Jan 2008 06:18:35
Hello,

Is there some sort of way, other than to use a switch statement, to do this: 
[ignore the loop, its the variable I am interested in]

 #local var0 = foo;
 #local var1 = foo;
 #local var2 = foo;

while J<2{
 while Jx<num{
  #local Positions[J][Jx] = <0,var+J,0>; // so that it would be processed as 
var0 etc..
 }
}

Normally one could accomplish this quite easily in any other language...and 
I am guessing this is possible in sdl as well...

Thanks,
ian


Post a reply to this message

Copyright 1991-2004 POV-Team™