mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Integrate plates. Remove preview.
This commit is contained in:
parent
bae768260c
commit
ae5481d4e3
2 changed files with 3 additions and 26 deletions
|
|
@ -9,7 +9,7 @@ class IntegrateAssumedDestination(pyblish.api.InstancePlugin):
|
||||||
|
|
||||||
label = "Integrate Assumed Destination"
|
label = "Integrate Assumed Destination"
|
||||||
order = pyblish.api.IntegratorOrder - 0.05
|
order = pyblish.api.IntegratorOrder - 0.05
|
||||||
families = ["clip", "projectfile"]
|
families = ["clip", "projectfile", "plate"]
|
||||||
|
|
||||||
def process(self, instance):
|
def process(self, instance):
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,11 +40,12 @@ class CollectPlates(api.ContextPlugin):
|
||||||
data[key] = value
|
data[key] = value
|
||||||
|
|
||||||
data["family"] = "plate"
|
data["family"] = "plate"
|
||||||
data["families"] = []
|
data["families"] = ["ftrack"]
|
||||||
data["label"] += (
|
data["label"] += (
|
||||||
" ({})".format(os.path.splitext(data["sourcePath"])[1])
|
" ({})".format(os.path.splitext(data["sourcePath"])[1])
|
||||||
)
|
)
|
||||||
data["subset"] = dict(tag["metadata"])["tag.subset"]
|
data["subset"] = dict(tag["metadata"])["tag.subset"]
|
||||||
|
data["source"] = data["sourcePath"]
|
||||||
|
|
||||||
# Timeline data.
|
# Timeline data.
|
||||||
handle_start = int(instance.data["handleStart"] + data["handles"])
|
handle_start = int(instance.data["handleStart"] + data["handles"])
|
||||||
|
|
@ -232,27 +233,6 @@ class CollectPlatesData(api.InstancePlugin):
|
||||||
start_frame = source_in_h
|
start_frame = source_in_h
|
||||||
end_frame = source_out_h
|
end_frame = source_out_h
|
||||||
|
|
||||||
|
|
||||||
mov_file = head + ".mov"
|
|
||||||
mov_path = os.path.normpath(os.path.join(staging_dir, mov_file))
|
|
||||||
if os.path.exists(mov_path):
|
|
||||||
# adding mov into the representations
|
|
||||||
self.log.debug("__ mov_path: {}".format(mov_path))
|
|
||||||
plates_mov_representation = {
|
|
||||||
'files': mov_file,
|
|
||||||
'stagingDir': staging_dir,
|
|
||||||
'startFrame': 0,
|
|
||||||
'endFrame': source_out - source_in + 1,
|
|
||||||
'step': 1,
|
|
||||||
'frameRate': fps,
|
|
||||||
'preview': True,
|
|
||||||
'thumbnail': False,
|
|
||||||
'name': "preview",
|
|
||||||
'ext': "mov",
|
|
||||||
}
|
|
||||||
instance.data["representations"].append(
|
|
||||||
plates_mov_representation)
|
|
||||||
|
|
||||||
thumb_file = head + ".png"
|
thumb_file = head + ".png"
|
||||||
thumb_path = os.path.join(staging_dir, thumb_file)
|
thumb_path = os.path.join(staging_dir, thumb_file)
|
||||||
self.log.debug("__ thumb_path: {}".format(thumb_path))
|
self.log.debug("__ thumb_path: {}".format(thumb_path))
|
||||||
|
|
@ -293,6 +273,3 @@ class CollectPlatesData(api.InstancePlugin):
|
||||||
plates_representation))
|
plates_representation))
|
||||||
self.log.debug("__ after family: {}".format(family))
|
self.log.debug("__ after family: {}".format(family))
|
||||||
self.log.debug("__ after families: {}".format(families))
|
self.log.debug("__ after families: {}".format(families))
|
||||||
|
|
||||||
# # this will do FnNsFrameServer
|
|
||||||
# FnNsFrameServer.renderFrames(*_args)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue