Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
OP-3684 - use instance.data["farm"] to skip local integrate
Browse files Browse the repository at this point in the history
No Settings necessary, instance itself should hold if it is targetted for farm (eg. not locally integrated.)
  • Loading branch information
kalisp committed Aug 3, 2022
1 parent 99469a1 commit bab5629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions openpype/hosts/aftereffects/plugins/publish/collect_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def get_instances(self, context):
attachTo=False,
setMembers='',
publish=True,
renderer='aerender',
name=subset_name,
resolutionWidth=render_q.width,
resolutionHeight=render_q.height,
Expand All @@ -113,7 +112,6 @@ def get_instances(self, context):
frameStart=frame_start,
frameEnd=frame_end,
frameStep=1,
toBeRenderedOn='deadline',
fps=fps,
app_version=app_version,
publish_attributes=inst.data.get("publish_attributes", {}),
Expand All @@ -138,6 +136,9 @@ def get_instances(self, context):
fam = "render.farm"
if fam not in instance.families:
instance.families.append(fam)
instance.toBeRenderedOn = "deadline"
instance.renderer = "aerender"
instance.farm = True # to skip integrate

instances.append(instance)
instances_to_remove.append(inst)
Expand Down
2 changes: 2 additions & 0 deletions openpype/pipeline/publish/abstract_collect_render.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ class RenderInstance(object):

family = attr.ib(default="renderlayer")
families = attr.ib(default=["renderlayer"]) # list of families
# True if should be rendered on farm, eg not integrate
farm = attr.ib(default=False)

# format settings
multipartExr = attr.ib(default=False) # flag for multipart exrs
Expand Down

0 comments on commit bab5629

Please sign in to comment.