Skip to content
Permalink
Browse files

force writing output files to project diretory

add German template names
  • Loading branch information...
kaazoo committed Mar 17, 2011
1 parent 3450805 commit 68739cd9f2e0f6da6dda7923fee199b92dd6e91d
Showing with 10 additions and 1 deletion.
  1. +10 −1 etc/aftereffects_sg.py
@@ -43,11 +43,13 @@
DRQUEUE_STARTFRAME = int(os.getenv("DRQUEUE_STARTFRAME"))
DRQUEUE_STEPFRAME = int(os.getenv("DRQUEUE_STEPFRAME"))

PROJECT_DIR = os.path.dirname(PROJECT)

if DRQUEUE_OS == "WINDOWS":
# convert to windows path with drive letter
PROJECT = subprocess.Popen(["cygpath.exe", "-w "+PROJECT], stdout=subprocess.PIPE).communicate()[0]
COMP = subprocess.Popen(["cygpath.exe", "-w "+COMP], stdout=subprocess.PIPE).communicate()[0]
PROJECT_DIR = subprocess.Popen(["cygpath.exe", "-w "+PROJECT_DIR], stdout=subprocess.PIPE).communicate()[0]

BLOCK = DRQUEUE_FRAME + DRQUEUE_BLOCKSIZE - 1

@@ -56,7 +58,14 @@

ENGINE_PATH="aerender"

command = ENGINE_PATH+" -project "+PROJECT+" -comp "+COMP+" -OMtemplate \"Multi-Machine Sequence\" -s "+str(DRQUEUE_FRAME)+" -e "+str(BLOCK)
# English template names
omtemplate = "Multi-Machine Sequence"
rstemplate = "Multi-Machine Settings"
# German template names
#omtemplate = "Sequenz für mehrere Rechner"
#rstemplate = "Einstellungen für mehrere Rechner"

command = ENGINE_PATH+" -project "+PROJECT+" -comp \""+COMP+"\" -OMtemplate \""+omtemplate+"\" -RStemplate \""+rstemplate+"\" -s "+str(DRQUEUE_FRAME)+" -e "+str(BLOCK)+" -output "+os.path.join(PROJECT_DIR, "frame_[####].psd")

print(command)
sys.stdout.flush()

0 comments on commit 68739cd

Please sign in to comment.
You can’t perform that action at this time.