Merge branch 'develop' into enhancement/858-move-tray-actions-to-tray-tool

This commit is contained in:
Jakub Trllo 2024-12-13 13:44:37 +01:00 committed by GitHub
commit 1e83782184
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 4 deletions

View file

@ -5,6 +5,7 @@ Temporary folder operations
import os
import tempfile
from pathlib import Path
import warnings
from ayon_core.lib import StringTemplate
from ayon_core.pipeline import Anatomy
@ -70,6 +71,21 @@ def _create_local_staging_dir(prefix, suffix, dirpath=None):
)
def create_custom_tempdir(project_name, anatomy=None):
"""Backward compatibility deprecated since 2024/12/09.
"""
warnings.warn(
"Used deprecated 'create_custom_tempdir' "
"use 'ayon_core.pipeline.tempdir.get_temp_dir' instead.",
DeprecationWarning,
)
if anatomy is None:
anatomy = Anatomy(project_name)
return _create_custom_tempdir(project_name, anatomy)
def _create_custom_tempdir(project_name, anatomy):
""" Create custom tempdir

View file

@ -71,15 +71,16 @@ class ExtractOTIOReview(
# TODO: convert resulting image sequence to mp4
# get otio clip and other time info from instance clip
# TODO: what if handles are different in `versionData`?
handle_start = instance.data["handleStart"]
handle_end = instance.data["handleEnd"]
otio_review_clips = instance.data.get("otioReviewClips")
if otio_review_clips is None:
self.log.info(f"Instance `{instance}` has no otioReviewClips")
return
# TODO: what if handles are different in `versionData`?
handle_start = instance.data["handleStart"]
handle_end = instance.data["handleEnd"]
# add plugin wide attributes
self.representation_files = []
self.used_frames = []

View file

@ -37,7 +37,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin):
"substancepainter",
"nuke",
"aftereffects",
"unreal"
"unreal",
"houdini"
]
enabled = False