Can you script rendering?

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Can you script rendering?

Post by mkelley »

Mike (most likely -- hope he sees this),

Is it possible to script rendering? Since the command line interface doesn't seem to work in Windows XP I was hoping there is a way of calling the renderer from a script so I could at least try a batch script render (might be beyond the Lua interface but I'm willing to give it a try).
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

Yes ,it should be fully doable.
Check my Edit in Gimp script for a way to call external programs.
The way you'd have to do this is to call AS from within AS, it would be the same as using command line renderer. I don't think you can call render directly from a script within AS.
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post by mkelley »

Well, that won't work for me then.

I can't get the command line renderer to work, at least in XP. I'm going to try yet one more time today, but I've already stripped it down to just the essentials.

Now -- it *might* have something to do with me having the 6.0 demo installed (perhaps there is some other code going on that prevents the renderer from being called just in case I'm trying to get around the demo code or something). I hope that's just all it is because otherwise I'm stumped.
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

I can't recall anyone else here on this forum having problems with CLI render at windows so something might be askew with your setup.

What exactly happens when you try? How do you try? Do you use the correct and full path to AS-executable in your line?
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post by mkelley »

I don't think it's me -- I've tried it now on two different machines on my network.

All that happens is that AS starts up -- the file I'm passing in the parameter isn't loaded or anything else. The parms are pretty straightforward -- just the program name followed by -f and then the file name (and the file is in the same directory as the AS executable).

All I do is this -- I run the command "CMD" which brings up the Window DOS emulation (but allows full length file names), change to the AS directory, and then run that command (which is the name of the AS executable followed by the -f parm).

I'm not so sure we could consider it as working for anyone else -- is anyone else running Windows XP actually USING this in 5.6 or 6.0? Particularly after they installed the 6.0 demo? Or, to pose another question, can anyone try this now (I'd be most interested if they can do this with 6.0, as that's what it's going to be for).
User avatar
rylleman
Posts: 750
Joined: Tue Feb 15, 2005 5:22 pm
Location: sweden
Contact:

Post by rylleman »

mkelley wrote:...All that happens is that AS starts up -- the file I'm passing in the parameter isn't loaded or anything else. The parms are pretty straightforward -- just the program name followed by -f and then the file name (and the file is in the same directory as the AS executable).
...
Are you using -f as it is?, nothing else?
Then that might be your problem. -f is the format flag and should be followed by a format, like "-f PNG" for rendering to png-sequence. setting it by itself might cause problems, either leave it out to render to default format or set a format after -f.
User avatar
mkelley
Posts: 1647
Joined: Fri Nov 02, 2007 5:29 pm
Location: Sunny Florida
Contact:

Post by mkelley »

Okay, I'm officially an idiot.

Somewhere along the way (can't tell where or when but in my many tests of this) I got the -r (filename) mixed up with the -f parm.

I have to go back and retrace my steps -- because I was still having issues when I WAS using the -r but they were different than this. I can at least get the renderer to work with the -r (filename) parm.

Thanks -- at least I now have the ability to keep going with my tests.
Post Reply