POV-Ray : Newsgroups : povray.macintosh : Pre/Post scene commands in OSX Server Time
23 Nov 2024 23:33:28 EST (-0500)
  Pre/Post scene commands in OSX (Message 1 to 5 of 5)  
From: chris morgan
Subject: Pre/Post scene commands in OSX
Date: 4 Dec 2004 16:15:00
Message: <web.41b2288184e29a8d70217cea0@news.povray.org>
I am trying to use the Pre/Post Scene Commands in an INI file but I can't
get them to work.  Do they work in OS X or am I doing something wrong?  Any
advice would be greatly appreciated.  I am attempting to shell out to the
OS to create a file before the rendering begins and overwrite it after it
finishes.

Pre_Scene_Command=printf "working" > ../../povProj/status2.txt
Post_Scene_Command=printf "done" > ../../povProj/status2.txt


I don't know a lot of UNIX but these lines do work when pasted into the
terminal.  I apologize if this has been asked before.   I am new to the
list (just signed up) and I couldn't find any past references to it.

chris


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Pre/Post scene commands in OSX
Date: 4 Dec 2004 16:47:23
Message: <41b2306b$1@news.povray.org>
In article <web.41b2288184e29a8d70217cea0@news.povray.org> , "chris morgan"
<iso### [at] yahoocom> wrote:

> I am trying to use the Pre/Post Scene Commands in an INI file but I can't
> get them to work.  Do they work in OS X or am I doing something wrong?  Any

You cannot access the Unix command-line from a regular Mac application. If
you want to control POV-Ray via the command-line, I would recommend to
compile a Unix command-line version and not use the GUI version.

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: chris morgan
Subject: Re: Pre/Post scene commands in OSX
Date: 4 Dec 2004 18:05:00
Message: <web.41b24233905a531a70217cea0@news.povray.org>
Thanks, Thorsten, for your rapid response to my question.  As a follow up,
perhaps I could ask another question: do the post/pre commands do anything
presently on the Mac version?  For instance, could they launch a script via
applescript?  I am just trying to explore other ways of signaling another
applescript that a rendering job is complete so that I can start another
job.  This can probably all be done in applescript but having POV-Ray
signal when it was done seemed the easiest and most direct approach.
Thanks again, Chris


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Pre/Post scene commands in OSX
Date: 5 Dec 2004 13:15:47
Message: <41b35053$1@news.povray.org>
In article <web.41b24233905a531a70217cea0@news.povray.org> , "chris morgan"
<iso### [at] yahoocom> wrote:

> do the post/pre commands do anything
> presently on the Mac version?

No, sorry!

> I am just trying to explore other ways of signaling another
> applescript that a rendering job is complete so that I can start another
> job.

There is currently no way AppleScript can start a render, sorry!

    Thorsten

PS: Both features do have a rather high priority on the Mac GUI todo list,
check again when 3.6.2 comes out in a few month, maybe I will have had the
time to add it until then.  It isn't all that much to do on the Mac side...

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: chris morgan
Subject: Re: Pre/Post scene commands in OSX
Date: 5 Dec 2004 22:55:00
Message: <web.41b3d6c8905a531a70217cea0@news.povray.org>
Thorsten,

Thanks for the info and thanks for letting me know where in the todo list
these GUI features stand.  I am looking forward to version 3.6.2 especially
if you have time to add these features but I know how busy you must be!

  Actually, I can start a Render job using Applescript by sending the
keyboard shortcut with the following GUI code.

 tell application "System Events"
  tell process "POV-Ray Mac 3.6"
   keystroke "r" using {command down}
  end tell
 end tell

So starting a render job isn't a problem for me, but knowing when the job is
over is hard to find out.  I have even tried having POV-Ray write a file
saying "done" and having Applescript check it periodically but POV-Ray
would write it before it was done rendering completely.

Anyway, at present I am trying to install the command line UNIX version and
since I am having a few problems with that I am going to post a message on
the Unix message board.  Thanks again,
Chris


Post a reply to this message

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