|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
|
|