more product naming

This commit is contained in:
Jakub Trllo 2024-02-26 11:43:45 +01:00
parent c03bc9b8a1
commit cb4cf9d8c0
2 changed files with 4 additions and 4 deletions

View file

@ -284,9 +284,9 @@ class ExistingLayoutLoader(plugin.Loader):
# Create the container for the asset.
asset = repr_data.get('context').get('asset')
subset = repr_data.get('context').get('subset')
product_name = repr_data.get('context').get('subset')
container = self._create_container(
f"{asset}_{subset}", mesh_path, asset,
f"{asset}_{product_name}", mesh_path, asset,
repr_data.get('_id'), repr_data.get('parent'),
repr_data.get('context').get('family')
)

View file

@ -401,7 +401,7 @@
# import ftrack_api
#
# session = ftrack_api.Session()
# subset_name = data["subset"]["name"]
# product_name = data["subset"]["name"]
# versions = {
# '"{}"'.format(version_doc["name"])
# for version_doc in data["versions"]
@ -414,7 +414,7 @@
# " and version in ({})"
# ).format(
# asset_ftrack_id,
# subset_name,
# product_name,
# ",".join(versions)
# )
# ).all()