mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #3370 from pypeclub/OP-2449/Maya-Validate-Frame-Range
This commit is contained in:
commit
8a52e709ff
3 changed files with 35 additions and 8 deletions
|
|
@ -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 [ {} ]: "
|
||||
|
|
|
|||
|
|
@ -204,7 +204,8 @@
|
|||
"ValidateFrameRange": {
|
||||
"enabled": true,
|
||||
"optional": true,
|
||||
"active": true
|
||||
"active": true,
|
||||
"exclude_families": ["model", "rig", "staticMesh"]
|
||||
},
|
||||
"ValidateShaderName": {
|
||||
"enabled": false,
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue