mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Merge pull request #151 from aardschok/REN-43
Added support for frames per task
This commit is contained in:
commit
279dff2f16
2 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue