Merge pull request #151 from aardschok/REN-43

Added support for frames per task
This commit is contained in:
Wijnand Koreman 2018-08-30 10:32:59 +02:00 committed by GitHub
commit 279dff2f16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -41,6 +41,7 @@ class CreateRenderGlobals(avalon.maya.Creator):
data["overrideExistingFrame"] = True
data["useLegacyRenderLayers"] = True
data["priority"] = 50
data["framesPerTask"] = 1
data["whitelist"] = False
data["machineList"] = ""
data["useMayaBatch"] = True

View file

@ -147,6 +147,9 @@ class CollectMayaRenderlayers(pyblish.api.ContextPlugin):
state = "Suspended" if attributes["suspendPublishJob"] else "Active"
options["publishJobState"] = state
chunksize = attributes.get("framesPerTask", 1)
options["renderGlobals"]["ChunkSize"] = chunksize
# Override frames should be False if extendFrames is False. This is
# to ensure it doesn't go off doing crazy unpredictable things
override_frames = False