POV-Ray : Newsgroups : povray.newusers : Loops and strings : Loops and strings Server Time
24 Apr 2024 11:27:23 EDT (-0400)
  Loops and strings  
From: Dedus
Date: 21 Mar 2016 16:25:00
Message: <web.56f05768dab79262d18e5a860@news.povray.org>
Hello,

I have got a question about using strings and loops in povray.

I have got about 60 objects with the same attributes but they all have got
different meshes that come from STL-files.

Like this:

object{ somemesh_xx
  ...
  ...
  ...
}

"somemesh_xx" is a string and I want to generate 60 different objects from 60
different STL-files by using a loop with the variable "xx".
So I would like avoid writing somemesh_01 , somemesh_02 , ... , somemesh_60
and to be able to change the attribute of all by only changing one variable.


I would be glad if you could help me.


Post a reply to this message

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