|
|
|
|
![]() ![]() |
Sep 1 2006, 12:05 AM
Post
#1
|
|
|
Premium Member Group: Members Posts: 493 Joined: 15-August 05 Member No.: 7,873 |
I am doing pre planning for the blenderxgrid.com script. I was originally going to do this with PERL, but elected against it. Eventually I'll be moving the site off astahost and replacing it with a website hosted on the same machine as the xgrid controller. I am setting up a test version on my latop using OSX's apache server, MySQL, and PHP on a localhost config.
Here is my step list for the script: ------------------------------------- Form: (within Xoops CMS, so user will have to be logged in) Username Password [file upload] (where they can upload the .blend file) Start Frame: first frame of animation End Frame: last frame of animation ------------------------------------------- Step 1: Check username & password against xoops database Step 2: ensure file is a .blend else die ("Sorry, not a blender file") Step 3: Upload file to /gridjobs/ & report success Step 4: $filePath = "/gridjobs/" . "$fileName"; $blenderPath = "/blender/blender.app/Contents/MacOS/blender -b" . $filePath . "-s " . $startFrame . "-e " .$endFrame . "-a"; system ('xgrid -h localhost -p password -job submit $blenderPath', $results); print $results; ?> That's what I got so far. Any other ideas or corrects welcome. It's been a couple years since I last programed anything from scratch. |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 11th October 2008 - 08:12 PM |