POV-Ray : Newsgroups : povray.general : PoV can't read my array : Re: PoV can't read my array Server Time
29 Jul 2024 10:22:04 EDT (-0400)
  Re: PoV can't read my array  
From: Alain
Date: 11 Jan 2012 21:26:37
Message: <4f0e44dd@news.povray.org>

> Hi to all !
>
> A stupid problem , i write an array and i can't read it (141 vectors) with a
> 'while loop', here's the console message :
> --
> File: _array.inc  Line: 43
> File Context (5 lines):
> <462.75,1,102.5>  ,<462.75,1,102.5>  ,<462.75,1,102.5>  ,<493.5,1,101.25>  ,
> <
> Parse Error: No matching } in '{',<  found instead
> --
>
> In  this  file  _array.inc i see nothing wrong; here is end lines :
>
> <462.75,1,102.5>  ,<462.75,1,102.5>  ,<462.75,1,102.5>  ,<493.5,1,101.25>  ,
> <511,1,101.5>  ,}
>
> And my while loop is :
>
> #declare I=0;
> #while (I<Nbr_de_pt)
> sphere{Traject_array[I],5 pigment{Blue}}
> #declare I =I+1;
> #end
>
> I really don't know and see where, and what is the mistake. What do you think
> about ?
> Thanks for your interest about this.
>
>
>
>

There is a coma before the closing brace.
As it is now, you write eache elements and unconditionaly follow it with 
a coma, resulting in one superflous coma.


Possible cure:
Write the first element.
Write a coma BEFORE each successive elements.



Alain


Post a reply to this message

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