POV-Ray : Newsgroups : povray.general : How to customize the output? Server Time: 23 Oct 2019 02:05:37 GMT
  How to customize the output? (Message 1 to 3 of 3)  
From: Kima
Subject: How to customize the output?
Date: 9 Oct 2019 13:15:00
Message: <web.5d9ddd0fba522ca3ecc0fada0@news.povray.org>
Following a subtle suggestion at
http://news.povray.org/povray.general/thread/%3Cweb.5d9c84adcc983787ecc0fada0%40news.povray.org%3E/

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?


Post a reply to this message

From: jr
Subject: Re: How to customize the output?
Date: 9 Oct 2019 13:25:01
Message: <web.5d9ddf6e495e39d5feeb22ff0@news.povray.org>
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.


Post a reply to this message

From: Dick Balaska
Subject: Re: How to customize the output?
Date: 9 Oct 2019 22: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-2008 Persistence of Vision Raytracer Pty. Ltd.