2
2
3
3
"""
4
4
DrQueue render template for Cinema4D
5
- Copyright (C) 2011 Andreas Schroeder
5
+ Copyright (C) 2011-2014 Andreas Schröder
6
6
7
7
This file is part of DrQueue.
8
8
@@ -38,11 +38,11 @@ def run_renderer(env_dict):
38
38
# renderer path/executable
39
39
engine_path = "C:\Program\ Files\MAXON\CINEMA\ 4D\ R12\CINEMA\ 4D.exe"
40
40
41
- if DRQUEUE_OS == "Mac OSX" :
41
+ elif DRQUEUE_OS in [ "Mac OSX" , "Darwin" ] :
42
42
# renderer path/executable
43
43
engine_path = "/Applications/MAXON/CINEMA\ 4D\ R12/CINEMA\ 4D.app/Contents/MacOS/CINEMA\ 4D"
44
44
45
- if DRQUEUE_OS == "Linux" :
45
+ elif DRQUEUE_OS == "Linux" :
46
46
# we use wine on linux (this is a hack, but works)
47
47
# there is a tightvnc server running on display :1
48
48
# see wine bug #8069
@@ -62,7 +62,11 @@ def run_renderer(env_dict):
62
62
# set env variable, so wine can access the xserver even though we are rendering headless
63
63
os .environ ["DISPLAY" ] = ":1"
64
64
65
- command = engine_path + " -nogui -render " + DRQUEUE_SCENEFILE + " -oimage " + DRQUEUE_RENDERDIR + " -frame " + DRQUEUE_FRAME + " -omultipass " + DRQUEUE_RENDERDIR + " -threads 0"
65
+ else :
66
+ helper .log_write ('ERROR: Unsupported operating system ' + str (DRQUEUE_OS ))
67
+ return helper .return_to_ipython (1 )
68
+
69
+ command = engine_path + " -nogui -render " + DRQUEUE_SCENEFILE + " -oimage " + DRQUEUE_RENDERDIR + " -frame " + str (DRQUEUE_FRAME ) + " -omultipass " + DRQUEUE_RENDERDIR + " -threads 0"
66
70
67
71
# log command line
68
72
helper .log_write (command + "\n " )
0 commit comments