POV-Ray : Newsgroups : povray.general : How to customize the output? : Re: How to customize the output? Server Time
24 Apr 2024 01:22:32 EDT (-0400)
  Re: How to customize the output?  
From: Dick Balaska
Date: 9 Oct 2019 18:04:11
Message: <5d9e595b$1@news.povray.org>
On 10/9/19 9:23 AM, jr wrote:
> hi,
> 
> "Kima" <nomail@nomail> wrote:
>> ...
>> I need to calculate the object width in the first run, and parse the output of
>> #debug stream to set the camera location in the main run.
>>
>> I do this by a shell script in linux, but the output of povray command contains
>> lots of information (credit, rendering, etc).
>>
>> How can I limit the output of the povray command to #debug stream?
> 
> <http://wiki.povray.org/content/Reference:Text_Output_Options>
> 
> however, I'd be tempted to write the information needed to a text file, from the
> scene (ie using '#write').  that way you you can reduce the need for "parsing"
> (or, at least, make the task easier).
> <http://wiki.povray.org/content/Reference:File_I/O_Directives>
> 
> 
> regards, jr.
> 
> 

I like jr's suggestion.

The way I do it is with parsing.  You can't really control the noise 
around you, so make your noise noticeable.
i.e.
#debug concat("[myData] ObjectWidth ", str(ObjectWidth,0,3), "\n")

Then you know any line beginning with [myData] is one you care about for 
this application and you can ignore everything else.

-- 
dik
Rendered 1024 of 2073600 pixels (0%)


Post a reply to this message

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