POV-Ray : Newsgroups : povray.general : How to output the value of a variable? : Re: How to output the value of a variable? Server Time
26 Apr 2024 20:17:28 EDT (-0400)
  Re: How to output the value of a variable?  
From: Kima
Date: 7 Sep 2019 17:10:03
Message: <web.5d741c234c80d6e3ecc0fada0@news.povray.org>
"Kima" <nomail@nomail> wrote:
> #debug can output user-defined string, but how can I output the value of a
> variable. For example,
>
> #declare location1 = max_extent(object);
>
> how can I output the calculated vector of location1 to be read on the terminal
> output?

I found the solution if others encounter the same problem, The solution is the
set of string functions which can be found at
https://www.povray.org/documentation/view/3.6.1/232/

In my case, vstr can transform a vector into a string.


Post a reply to this message

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