 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"jr" <cre### [at] gmail com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |