Merge pull request #3370 from pypeclub/OP-2449/Maya-Validate-Frame-Range

This commit is contained in:
Milan Kolar 2022-07-05 08:08:44 +02:00 committed by GitHub
commit 8a52e709ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 8 deletions

View file

@ -27,6 +27,7 @@ class ValidateFrameRange(pyblish.api.InstancePlugin):
"yeticache"]
optional = True
actions = [openpype.api.RepairAction]
exclude_families = []
def process(self, instance):
context = instance.context
@ -56,7 +57,9 @@ class ValidateFrameRange(pyblish.api.InstancePlugin):
# compare with data on instance
errors = []
if [ef for ef in self.exclude_families
if instance.data["family"] in ef]:
return
if(inst_start != frame_start_handle):
errors.append("Instance start frame [ {} ] doesn't "
"match the one set on instance [ {} ]: "

View file

@ -204,7 +204,8 @@
"ValidateFrameRange": {
"enabled": true,
"optional": true,
"active": true
"active": true,
"exclude_families": ["model", "rig", "staticMesh"]
},
"ValidateShaderName": {
"enabled": false,

View file

@ -62,13 +62,36 @@
}
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
{
"type": "dict",
"collapsible": true,
"key": "ValidateFrameRange",
"label": "Validate Frame Range",
"checkbox_key": "enabled",
"children": [
{
"key": "ValidateFrameRange",
"label": "Validate Frame Range"
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "optional",
"label": "Optional"
},
{
"type": "boolean",
"key": "active",
"label": "Active"
},
{
"type": "splitter"
},
{
"key": "exclude_families",
"label": "Families",
"type": "list",
"object_type": "text"
}
]
},