|  |  | Am 04.01.2014 22:15, schrieb Stephen:
> I've looked but cannot find the answer. :-)
>
> How can I convert a text string in the form of "<x,y,z>" to a vector
> that I can use as a camera position?
#include "strings.inc"
#declare MyString = "<3.3, 6, 2>";
#declare MyVector = Parse_String(MyString);
Alternatively you could write the string to a temporary file (using the 
#fopen, #write and #fclose directives) and include it, but as a matter 
of fact that's exactly what Parse_String does.
 Post a reply to this message
 |  | 
|  |  | On 04/01/2014 10:03 PM, clipka wrote:
> #declare MyVector = Parse_String(MyString);
Thanks, my brain is dead.
I had problems with <0,0,0> at first.
Now other problems to work out.
-- 
Regards
     Stephen
Post a reply to this message
 |  |