delete unrelated code

This commit is contained in:
Kayla Man 2023-06-16 22:14:06 +08:00
parent 2f95aab31e
commit ec8c70db27
3 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,33 @@
import pyblish.api
class CollectAnatomyFrameRange(pyblish.api.InstancePlugin):
"""Collect Frame Range specific Anatomy data.
Plugin is running for all instances on context even not active instances.
"""
order = pyblish.api.CollectorOrder + 0.491
label = "Collect Anatomy Frame Range"
hosts = ["traypublisher"]
def process(self, instance):
self.log.info("Collecting Anatomy frame range.")
asset_doc = instance.data.get("assetEntity")
if not asset_doc:
self.log.info("Missing required data..")
return
asset_data = asset_doc["data"]
for key in (
"fps",
"frameStart",
"frameEnd",
"handleStart",
"handleEnd"
):
if key not in instance.data and key in asset_data:
value = asset_data[key]
instance.data[key] = value
self.log.info("Anatomy frame range collection finished.")

View file

@ -318,6 +318,10 @@
}
},
"publish": {
"CollectAnatomyFrameRange": {
"enabled": true,
"active": true
},
"ValidateFrameRange": {
"enabled": true,
"optional": true,

View file

@ -343,6 +343,10 @@
"type": "schema_template",
"name": "template_validate_plugin",
"template_data": [
{
"key": "CollectAnatomyFrameRange",
"label": "Collect Anatomy frame range"
},
{
"key": "ValidateFrameRange",
"label": "Validate frame range"