Skip to content

Commit

Permalink
Better implement collect workfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-ynput committed Oct 21, 2024
1 parent 6410c66 commit b105031
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions client/ayon_hiero/plugins/create/create_shot_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,7 @@ def create(self, subset_name, instance_data, pre_create_data):
if len(self.selected) < 1:
return

self.log.info(self.selected)
self.log.debug(f"Selected: {self.selected}")
self.log.info(f"Selected: {self.selected}")

audio_clips = []
for audio_track in self.sequence.audioTracks():
Expand Down
5 changes: 2 additions & 3 deletions client/ayon_hiero/plugins/publish/collect_workfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
import hiero


class CollectWorkfile(pyblish.api.InstancePlugin):
class CollectWorkfile(pyblish.api.ContextPlugin):
"""Collect the current working file into context"""

label = "Collect Workfile"
families = ["workfile"]
hosts = ["hiero"]
order = pyblish.api.CollectorOrder - 0.49

Expand All @@ -18,4 +17,4 @@ def process(self, instance):

current_file = project.path()

instance.context.data["currentFile"] = current_file
instance.data["currentFile"] = current_file

0 comments on commit b105031

Please sign in to comment.