mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
OP-4617 - added new plugin to expose field for frames to fix
Collector should get triggered for render family and offer field to input frames that should be re-rendered and replaced ones in latest version
This commit is contained in:
parent
1a242862ef
commit
331ec6bf9d
1 changed files with 29 additions and 0 deletions
29
openpype/plugins/publish/collect_frames_fix.py
Normal file
29
openpype/plugins/publish/collect_frames_fix.py
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
import pyblish.api
|
||||
from openpype.lib.attribute_definitions import TextDef
|
||||
from openpype.pipeline.publish import OpenPypePyblishPluginMixin
|
||||
|
||||
|
||||
class CollectFramesFixDef(
|
||||
pyblish.api.ContextPlugin,
|
||||
OpenPypePyblishPluginMixin
|
||||
):
|
||||
label = "Collect frames to fix"
|
||||
targets = ["local"]
|
||||
# Disable plugin by default
|
||||
families = ["render"]
|
||||
enabled = True
|
||||
|
||||
def process(self, instance):
|
||||
attribute_values = self.get_attr_values_from_data(instance.data)
|
||||
frames_to_fix = attribute_values.get("frames_to_fix")
|
||||
if frames_to_fix:
|
||||
instance.data["frames_to_fix"] = frames_to_fix
|
||||
|
||||
@classmethod
|
||||
def get_attribute_defs(cls):
|
||||
return [
|
||||
TextDef("frames_to_fix", label="Frames to fix",
|
||||
placeholder="5,10-15",
|
||||
regex="[0-9,-]+")
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue