POV-Ray : Newsgroups : povray.beta-test : [Linux] shell-out substitutions Server Time
1 Nov 2024 21:22:05 EDT (-0400)
  [Linux] shell-out substitutions (Message 1 to 4 of 4)  
From: Theo
Subject: [Linux] shell-out substitutions
Date: 1 Mar 2002 17:24:02
Message: <3C7FFEB2.22A1FDD3@inter.nl.net>
POV-Ray : 3.5.beta.11 Unix (.Linux.gcc)
Sytem : Linux 2.4.8-26mdk
RAM : 128Mb

When I render a .ini file like this:

Input_File_Name = reindert.pov
Output_File_Type = N
Output_File_Name = images/%s
Initial_Frame = 001
Final_Frame   = 100
Post_Scene_Command = convert images/%s*.png %s.mpg

then PovRay generates files like: 

images/%s001.png
images/%s002.png
...

while I expect this:

images/reindert001.png
images/reindert002.png
...

Then, when I try to debug this, the following line gives a segmentation
fault:

Output_File_Name = images/%o %s %n

Regards, Theo


Post a reply to this message

From: Felix Wiemann
Subject: Re: [Linux] shell-out substitutions
Date: 11 Mar 2002 14:02:46
Message: <3C8CFFFB.1050708@gmx.net>
Theo wrote:

> Input_File_Name = reindert.pov
> Output_File_Type = N
> Output_File_Name = images/%s
> Initial_Frame = 001
> Final_Frame   = 100
> Post_Scene_Command = convert images/%s*.png %s.mpg
> 
> then PovRay generates files like: 
> 
> images/%s001.png
> images/%s002.png
> ....
> 
> while I expect this:
> 
> images/reindert001.png
> images/reindert002.png
> ....

It isn't possible and doesn't make sense to use such substitutions in another
parameter than "..._Command"!


> Then, when I try to debug this, the following line gives a segmentation
> fault:
> 
> Output_File_Name = images/%o %s %n
Confirmed. It occurs when using more than one of the substitutions:

%o OK
%s OK
%n OK
%o%s NO
%o%n NO
%s%n NO
%o%x OK!
It seems to be a problem of these substitutions, because %o%x works 
correctly (%x is no substitution).

Felix Wiemann

(Beta 12, SuSE Linux 7.3, P3 600, 128 MB)


Post a reply to this message

From: Theo
Subject: Re: [Linux] shell-out substitutions
Date: 23 Mar 2002 17:46:20
Message: <3c9d05bc@news.povray.org>
Felix Wiemann wrote:

>> Input_File_Name = reindert.pov
...
>> Output_File_Name = images/%s
>> Post_Scene_Command = convert images/%s*.png %s.mpg
...
> It isn't possible and doesn't make sense to use such substitutions in
> another parameter than "..._Command"!

My goal was have one script (.ini) and change only the line with 
Input_File_Name to render the next mpg. But the docs say substitution only 
works in shell commands so let keep it as it is.

...hmm it make me wonder why the second error occurs...

Regards, Theo


Post a reply to this message

From: Anders K 
Subject: Re: [Linux] shell-out substitutions
Date: 23 Mar 2002 18:42:42
Message: <3c9d12f2$1@news.povray.org>
> >> Output_File_Name = images/%s
> >> Post_Scene_Command = convert images/%s*.png %s.mpg
> ...
> > It isn't possible and doesn't make sense to use such substitutions in
> > another parameter than "..._Command"!
>
> My goal was have one script (.ini) and change only the line with
> Input_File_Name to render the next mpg.

Try:
  Output_File_Name = images/

Anders

--
light_source{6#local D=#macro B(E)#macro A(D)#declare E=(E-#declare
C=mod(E D);C)/D;C#end#while(E)#if(A(8)=7)#declare D=D+2.8;#else#if(
C>2)}torus{1..2clipped_by{box{-2y}}rotate<1 0C>*90translate<D+1A(2)
*2+1#else}cylinder{0(C-v=1).2translate<D+C*A(2)A(4)#end-2 13>finish
{specular 1}pigment{rgb x}#end#end#end-8;1B(445000298)B(519053970)B
(483402386)B(1445571258)B(77778740)B(541684549)B(42677491)B(70)}


Post a reply to this message

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