POV-Ray : Newsgroups : povray.general : writing a texture identifier to file : Re: writing a texture identifier to file Server Time
1 Jun 2024 16:43:51 EDT (-0400)
  Re: writing a texture identifier to file  
From: Christian Froeschlin
Date: 24 Jan 2016 18:59:27
Message: <56a5655f$1@news.povray.org>
On 20.01.2016 8:43, Thomas de Groot wrote:
> On 19-1-2016 17:40, dick balaska wrote:
>> I had a similar need. I ended up doing this and using the appropriate
>> array as needed...
>>
>> #declare TexArray =
>>    array[12]{
>>      T_Stone1,  T_Stone2,  ...
>>    };
>> #declare TexArrayText =
>>    array[12]{
>>      "T_Stone1",  "T_Stone2", ...
>>    };
>>
> Yes, it seems this is the way I shall have to go.

Note as far as I understand it you don't need to
maintain the list twice, just keep the string version
and fill the non-string version in a loop with
Parse_String as suggested by Jaime.


Post a reply to this message

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