mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
publisher using product entities
This commit is contained in:
parent
297b22bade
commit
fd4d499fa1
1 changed files with 6 additions and 8 deletions
|
|
@ -12,10 +12,8 @@ from abc import ABCMeta, abstractmethod
|
|||
import six
|
||||
import arrow
|
||||
import pyblish.api
|
||||
import ayon_api
|
||||
|
||||
from ayon_core.client import (
|
||||
get_subsets,
|
||||
)
|
||||
from ayon_core.lib.events import QueuedEventSystem
|
||||
from ayon_core.lib.attribute_definitions import (
|
||||
UIDef,
|
||||
|
|
@ -1775,14 +1773,14 @@ class PublisherController(BasePublisherController):
|
|||
if not folder_item:
|
||||
return None
|
||||
|
||||
subset_docs = get_subsets(
|
||||
product_entities = ayon_api.get_products(
|
||||
project_name,
|
||||
asset_ids=[folder_item.entity_id],
|
||||
fields=["name"]
|
||||
folder_ids={folder_item.entity_id},
|
||||
fields={"name"}
|
||||
)
|
||||
return {
|
||||
subset_doc["name"]
|
||||
for subset_doc in subset_docs
|
||||
product_entity["name"]
|
||||
for product_entity in product_entities
|
||||
}
|
||||
|
||||
def reset(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue