OP-3446 - renamed from mov to movie

Workflow should handle not only .mov, but .mp4s or any movie format.
This commit is contained in:
Petr Kalis 2022-07-19 10:57:30 +02:00
parent fa10d36f58
commit b4bd2542ff
4 changed files with 16 additions and 12 deletions

View file

@ -18,21 +18,25 @@ from openpype.pipeline import (
from openpype.hosts.traypublisher.api.plugin import TrayPublishCreator
class BatchMovCreator(TrayPublishCreator):
"""Creates instances from .mov file(s)."""
identifier = "render_mov_batch"
label = "Batch Mov"
class BatchMovieCreator(TrayPublishCreator):
"""Creates instances from movie file(s).
Intended for .mov files, but should work for any video file.
Doesn't handle image sequences though.
"""
identifier = "render_movie_batch"
label = "Batch Movies"
family = "render"
description = "Publish batch of movs"
description = "Publish batch of video files"
create_allow_context_change = False
version_regex = re.compile(r"^(.+)_v([0-9]+)$")
def __init__(self, project_settings, *args, **kwargs):
super(BatchMovCreator, self).__init__(project_settings,
super(BatchMovieCreator, self).__init__(project_settings,
*args, **kwargs)
creator_settings = (
project_settings["traypublisher"]["BatchMovCreator"]
project_settings["traypublisher"]["BatchMovieCreator"]
)
self.default_variants = creator_settings["default_variants"]
self.default_tasks = creator_settings["default_tasks"]

View file

@ -4,7 +4,7 @@ import pyblish.api
from openpype.pipeline import OpenPypePyblishPluginMixin
class CollectMovBatch(
class CollectMovieBatch(
pyblish.api.InstancePlugin, OpenPypePyblishPluginMixin
):
"""Collect file url for batch mov and create representation.
@ -19,7 +19,7 @@ class CollectMovBatch(
hosts = ["traypublisher"]
def process(self, instance):
if instance.data.get("creator_identifier") != "render_mov_batch":
if instance.data.get("creator_identifier") != "render_movie_batch":
return
creator_attributes = instance.data["creator_attributes"]

View file

@ -236,7 +236,7 @@
"extensions": []
}
],
"BatchMovCreator": {
"BatchMovieCreator": {
"default_variants": ["Main"],
"default_tasks": ["Compositing"],
"extensions": [

View file

@ -87,8 +87,8 @@
{
"type": "dict",
"collapsible": true,
"key": "BatchMovCreator",
"label": "Batch Mov Creator",
"key": "BatchMovieCreator",
"label": "Batch Movie Creator",
"use_label_wrap": true,
"collapsible_key": true,
"children": [