|
|
On 20-12-2015 8:57, Thomas de Groot wrote:
> On 20-12-2015 7:17, Sven Littkowski wrote:
>> The new feature I am describing here might not be of much use for
>> regular scenes, but I think, it comes handy for testing purposes.
>>
>
> I think there is no need for this as it can be probably be achieved with
> a macro using parse_string() and concat() within a #for loop. I hope to
> give an example after I try this out.
>
OK. My idea was a bit too complicated and didn't work. However, you can
use arrays instead:
#declare T_array = array[10]
#for (I,0,9,1)
#declare T_array[I] = texture {pigment {rgb < 0.50, 0.50, 0.50 >}}
#end
You have now 10 identical textures named T_array[0] to T_array[9].
Adapt this to your needs.
--
Thomas
Post a reply to this message
|
|