POV-Ray : Newsgroups : povray.general : Custom output filenames Server Time
2 Dec 2025 22:44:12 EST (-0500)
  Custom output filenames (Message 6 to 15 of 15)  
<<< Previous 5 Messages Goto Initial 10 Messages
From: stevenvh
Subject: Re: Custom output filenames
Date: 17 Nov 2025 14:10:00
Message: <web.691b71e4b2f6a36a59ef05b15b085d4@news.povray.org>
"stevenvh" <nomail@nomail> wrote:

> Current issue:
> when I add the line
>
>     Post_Scene_Command = c:RenumberPOVrayFiles.exe %s
>
> nothing happens, my program doesn't run. Is my understanding of
> "Post_Scene_Command" wrong?
> Also, the"%s" in the command is just the filename without the path. I need that
> path in my program (I have a select folder command there), which I hoped to
> automate.
>
> Thanks for the replies.

The "c:RenumberPOVrayFiles.exe" is actually "c:\RenumberPOVrayFiles.exe" with
the "\" included. The path + program name is correct.


Post a reply to this message

From: Bald Eagle
Subject: Re: Custom output filenames
Date: 17 Nov 2025 14:40:00
Message: <web.691b7907b2f6a36af625f77c25979125@news.povray.org>
"stevenvh" <nomail@nomail> wrote:

> Current issue:
> when I add the line
>
>     Post_Scene_Command = c:RenumberPOVrayFiles.exe %s
>
> nothing happens, my program doesn't run. Is my understanding of
> "Post_Scene_Command" wrong?

I don't really use the shell commands, so I have no idea.
Maybe use some program that would be super obvious, and just run a test scene.

> Also, the"%s" in the command is just the filename without the path. I need that
> path in my program (I have a select folder command there), which I hoped to
> automate.

Yeah - I had a question about that too in some other thread that I can't find
(because Google doesn't fully index our site, in spite of Chris Cason's many
attempts to ensure they do)

I'm guessing you're going to have to find some workaround.

I also have no idea if exposing the full filename path to the user has been
implemented in Willaim Pokorny's yuqk fork...

- BE


Post a reply to this message

From: Ilya Razmanov
Subject: Re: Custom output filenames
Date: 17 Nov 2025 23:30:55
Message: <691bf67f$1@news.povray.org>
On 17.11.2025 22:05, stevenvh wrote:
> "stevenvh" <nomail@nomail> wrote:
> 
> The "c:RenumberPOVrayFiles.exe" is actually "c:\RenumberPOVrayFiles.exe" with
> the "\" included. The path + program name is correct.
> 

Any chances it may expect "/" rather than "\"? Just a wild guess, in 
theory, in "" everything must work (are "" really a part of command 
line? I mean, are they passed to the system? Any chances you have to 
double them, like '""'?)

-- 
Ilyich the Toad
https://dnyarri.github.io/


Post a reply to this message

From: jr
Subject: Re: Custom output filenames
Date: 18 Nov 2025 03:10:00
Message: <web.691c28deb2f6a36a475fba6a6cde94f1@news.povray.org>
hi,

"stevenvh" <nomail@nomail> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > "jr" <cre### [at] gmailcom> wrote:
> > > ...
> > > 'Post_Scene_Command' option will help.
> >
> > sorry, 'Post_Frame_Command' is what I meant.
> > ...
> Current issue:
> when I add the line
>
>     Post_Scene_Command = c:RenumberPOVrayFiles.exe %s
>
> nothing happens, my program doesn't run. Is my understanding of
> "Post_Scene_Command" wrong?

by default "we" are not allowed to run shell commands, to avoid a potential
security issue.  in your global 'povray.conf' file, the "[Shellout Security]"
must be enabled / "allowed"; it is a good idea, generally, to tune the global
..conf and .ini files as part of "post installation".


> Also, the"%s" in the command is just the filename without the path. I need that
> path in my program (I have a select folder command there), which I hoped to
> automate.

I've not tried, but can you not write:  post_frame_command = sh myscript
path/to/%s

?

regards, jr.


Post a reply to this message

From: jr
Subject: Re: Custom output filenames
Date: 18 Nov 2025 05:05:00
Message: <web.691c4424b2f6a36a475fba6a6cde94f1@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> ...
> > Also, the"%s" in the command is just the filename without the path. I need that
> > path in my program (I have a select folder command there), which I hoped to
> > automate.
>
> I've not tried, but can you not write:  post_frame_command = sh myscript
> path/to/%s

given you have a "target" directory, the 'output_file_name' can (should ?) be a
complete pathname, eg "output_file_name = C:/path/to/selectfolder/myscene". also
use the 'all_file = on' option and POV-Ray's screen output will be (largely)
duplicated in a 'alltext.out' "log" file.  and re your Delphi code, what if it
takes two arguments, that is path and %s separately ?

<wiki.povray.org/content/Reference:File_Output_Options#Output_File_Name>


regards, jr.


Post a reply to this message

From: stevenvh
Subject: Re: Custom output filenames
Date: 19 Nov 2025 12:05:00
Message: <web.691df7e6b2f6a36a59ef05b15b085d4@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
>
> given you have a "target" directory, the 'output_file_name' can (should ?) be a
> complete pathname, eg "output_file_name = C:/path/to/selectfolder/myscene". also
> use the 'all_file = on' option and POV-Ray's screen output will be (largely)
> duplicated in a 'alltext.out' "log" file.  and re your Delphi code, what if it
> takes two arguments, that is path and %s separately ?
>
> <wiki.povray.org/content/Reference:File_Output_Options#Output_File_Name>
>

The program can take any number of arguments*, or at least maybe a dozen of
them. (I never could find a limit to them.) But arguments are of little use if
the program doesn't run in the first place.


*) For instance, argument 0 is the program name itself, including its path)


Post a reply to this message

From: jr
Subject: Re: Custom output filenames
Date: 19 Nov 2025 12:20:00
Message: <web.691dfb33b2f6a36a475fba6a6cde94f1@news.povray.org>
hi,

"stevenvh" <nomail@nomail> wrote:
> ...
> ... arguments are of little use if the program doesn't run in the first place.

have you checked your global ("system-wide") 'povray.conf' wrt permissions ?
(your private/user 'povray.conf' too, of course :-))

if your permissions are ok but your program doesn't run, it may be an
environment / $PATH issue; your code may only see a subset of the environment
(variables) POV-Ray sees.


regards, jr.


Post a reply to this message

From: Bald Eagle
Subject: Re: Custom output filenames
Date: 19 Nov 2025 12:20:00
Message: <web.691dfc0cb2f6a36ad33494a025979125@news.povray.org>
"stevenvh" <nomail@nomail> wrote:

> But arguments are of little use if
> the program doesn't run in the first place.

Yes, I think jr was trying to reference
https://wiki.povray.org/content/Documentation:Unix_Section_4

With regard to giving povray the necessary permissions for invoking executables.
(Sorry if you've already tried that - it wasn't clear from the thread if you had
or not)

- BW


Post a reply to this message

From: stevenvh
Subject: Re: Custom output filenames
Date: 29 Nov 2025 12:30:00
Message: <web.692b2ca9b2f6a36a59ef05b15b085d4@news.povray.org>
"stevenvh" <nomail@nomail> wrote:
> "stevenvh" <nomail@nomail> wrote:
>
> > Current issue:
> > when I add the line
> >
> >     Post_Scene_Command = c:RenumberPOVrayFiles.exe %s
> >
> > nothing happens, my program doesn't run. Is my understanding of
> > "Post_Scene_Command" wrong?
> > Also, the"%s" in the command is just the filename without the path. I need that
> > path in my program (I have a select folder command there), which I hoped to
> > automate.
> >

FYI, I found that execution of external programs is disabled by default. You can
enable it in "Options" -> "Script I/O restrictions" and uncheck "Disable
starting other programs". Now

    Post_Scene_Command = c:RenumberPOVrayFiles.exe %s

indeed runs my program, but the parameter %s is still not recognized.


Post a reply to this message

From: jr
Subject: Re: Custom output filenames
Date: 30 Nov 2025 02:50:00
Message: <web.692bf673b2f6a36a475fba6a6cde94f1@news.povray.org>
hi,

"stevenvh" <nomail@nomail> wrote:
> ...
> ... Now
>
>     Post_Scene_Command = c:RenumberPOVrayFiles.exe %s
>
> indeed runs my program, but the parameter %s is still not recognized.

check your program ?

fwiw, I'd write a simple shell script, and supply and check the expansion of the
seven substitutions available.

<wiki.povray.org/content/Reference:Shell_Command_Options>


regards, jr.


Post a reply to this message

<<< Previous 5 Messages Goto Initial 10 Messages

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