mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
bug fixes and implementing missing method
This commit is contained in:
parent
0114bbd965
commit
952717440d
1 changed files with 10 additions and 3 deletions
|
|
@ -82,12 +82,12 @@ class IntegrateHeroVersion(pyblish.api.InstancePlugin):
|
|||
hero_template
|
||||
))
|
||||
|
||||
self.process_instance(instance, template_key, hero_template)
|
||||
self.integrate_instance(instance, template_key, hero_template)
|
||||
|
||||
def process_instance(self, instance, template_key, hero_template):
|
||||
def integrate_instance(self, instance, template_key, hero_template):
|
||||
anatomy = instance.context.data["anatomy"]
|
||||
published_repres = instance.data["published_representations"]
|
||||
hero_publish_dir = self.get_publish_dir(instance)
|
||||
hero_publish_dir = self.get_publish_dir(instance, template_key)
|
||||
|
||||
src_version_entity = instance.data.get("versionEntity")
|
||||
filtered_repre_ids = []
|
||||
|
|
@ -540,6 +540,13 @@ class IntegrateHeroVersion(pyblish.api.InstancePlugin):
|
|||
template_name = self._default_template_name
|
||||
return template_name
|
||||
|
||||
def main_family_from_instance(self, instance):
|
||||
"""Returns main family of entered instance."""
|
||||
family = instance.data.get("family")
|
||||
if not family:
|
||||
family = instance.data["families"][0]
|
||||
return family
|
||||
|
||||
def copy_file(self, src_path, dst_path):
|
||||
# TODO check drives if are the same to check if cas hardlink
|
||||
dirname = os.path.dirname(dst_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue