OP-2766 Switched subset function according to review comments

This commit is contained in:
Petr Kalis 2022-03-30 13:30:53 +02:00
parent 0f08f3e31d
commit 9e4e6d4b85
2 changed files with 8 additions and 8 deletions

View file

@ -10,7 +10,7 @@ import os
import pyblish.api
from openpype.lib import get_subset_name
from openpype.lib import get_subset_name_with_asset_doc
class CollectReview(pyblish.api.ContextPlugin):
@ -27,13 +27,13 @@ class CollectReview(pyblish.api.ContextPlugin):
def process(self, context):
family = "review"
subset = get_subset_name(
subset = get_subset_name_with_asset_doc(
family,
"",
context.data["anatomyData"]["task"]["name"],
context.data["assetEntity"]["_id"],
context.data["assetEntity"],
context.data["anatomyData"]["project"]["name"],
host_name="photoshop"
host_name=context.data["hostName"]
)
instance = context.create_instance(subset)

View file

@ -1,7 +1,7 @@
import os
import pyblish.api
from openpype.lib import get_subset_name
from openpype.lib import get_subset_name_with_asset_doc
class CollectWorkfile(pyblish.api.ContextPlugin):
@ -20,13 +20,13 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
break
family = "workfile"
subset = get_subset_name(
subset = get_subset_name_with_asset_doc(
family,
"",
context.data["anatomyData"]["task"]["name"],
context.data["assetEntity"]["_id"],
context.data["assetEntity"],
context.data["anatomyData"]["project"]["name"],
host_name="photoshop"
host_name=context.data["hostName"]
)
file_path = context.data["currentFile"]