small schema cleanups

This commit is contained in:
Milan Kolar 2021-02-24 12:12:36 +01:00
parent abf649cf32
commit 189114feeb
6 changed files with 286 additions and 391 deletions

View file

@ -14,9 +14,15 @@
"name": "schema_global_tools"
},
{
"type": "raw-json",
"type": "collapsible-wrap",
"label": "Project Folder Structure",
"key": "project_folder_structure"
"children": [
{
"type": "raw-json",
"label": " ",
"key": "project_folder_structure"
}
]
},
{
"type": "schema",

View file

@ -9,7 +9,7 @@
"type": "dict",
"collapsible": true,
"key": "create",
"label": "Create plugins",
"label": "Creator plugins",
"children": [
{
"type": "dict",
@ -43,7 +43,7 @@
},
{
"type": "schema",
"name": "schema_nuke_plugins",
"name": "schema_nuke_publish",
"template_data": []
},
{

View file

@ -5,44 +5,6 @@
"label": "Standalone Publisher",
"is_file": true,
"children": [
{
"type": "dict",
"collapsible": true,
"key": "publish",
"label": "Publish plugins",
"is_file": true,
"children": [
{
"type": "dict",
"collapsible": true,
"key": "ExtractThumbnailSP",
"label": "ExtractThumbnailSP",
"is_group": true,
"children": [
{
"type": "dict",
"collapsible": false,
"key": "ffmpeg_args",
"label": "ffmpeg_args",
"children": [
{
"type": "list",
"object_type": "text",
"key": "input",
"label": "input"
},
{
"type": "list",
"object_type": "text",
"key": "output",
"label": "output"
}
]
}
]
}
]
},
{
"type": "dict-modifiable",
"collapsible": true,
@ -88,6 +50,44 @@
}
]
}
},
{
"type": "dict",
"collapsible": true,
"key": "publish",
"label": "Publish plugins",
"is_file": true,
"children": [
{
"type": "dict",
"collapsible": true,
"key": "ExtractThumbnailSP",
"label": "ExtractThumbnailSP",
"is_group": true,
"children": [
{
"type": "dict",
"collapsible": false,
"key": "ffmpeg_args",
"label": "ffmpeg_args",
"children": [
{
"type": "list",
"object_type": "text",
"key": "input",
"label": "input"
},
{
"type": "list",
"object_type": "text",
"key": "output",
"label": "output"
}
]
}
]
}
]
}
]
}

View file

@ -21,16 +21,66 @@
}
]
},
{
"type": "splitter"
},
{
"type": "label",
"label": "Validators"
},
{
"type": "dict",
"collapsible": true,
"key": "ValidateShaderName",
"label": "ValidateShaderName",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "label",
"label": "Shader name regex can use named capture group <b>asset</b> to validate against current asset name.<p><b>Example:</b><br/><code>^.*(?P=&lt;asset&gt;.+)_SHD</code></p>"
},
{
"type": "text",
"key": "regex",
"label": "Validation regex"
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "ValidateAttributes",
"label": "ValidateAttributes",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "raw-json",
"key": "attributes",
"label": "Attributes"
}
]
},
{
"type": "collapsible-wrap",
"label": "Validators",
"label": "Model",
"children": [
{
"type": "dict",
"collapsible": true,
"key": "ValidateShaderName",
"label": "ValidateShaderName",
"key": "ValidateModelName",
"label": "Validate Model Name",
"checkbox_key": "enabled",
"children": [
{
@ -40,7 +90,14 @@
},
{
"type": "label",
"label": "Shader name regex can use named capture group <b>asset</b> to validate against current asset name.<p><b>Example:</b><br/><code>^.*(?P=&lt;asset&gt;.+)_SHD</code></p>"
"label": "Path to material file defining list of material names to check. This is material name per line simple text file.<br/>It will be checked against named group <b>shader</b> in your <em>Validation regex</em>.<p>For example: <br/> <code>^.*(?P=&lt;shader&gt;.+)_GEO</code></p>"
},
{
"type": "path-widget",
"key": "material_file",
"label": "Material File",
"multiplatform": true,
"multipath": false
},
{
"type": "text",
@ -49,12 +106,11 @@
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "ValidateAttributes",
"label": "ValidateAttributes",
"key": "ValidateTransformNamingSuffix",
"label": "ValidateTransformNamingSuffix",
"checkbox_key": "enabled",
"children": [
{
@ -62,154 +118,19 @@
"key": "enabled",
"label": "Enabled"
},
{
"type": "label",
"label": "Validates transform suffix based on the type of its children shapes."
},
{
"type": "raw-json",
"key": "attributes",
"label": "Attributes"
}
]
},
{
"type": "collapsible-wrap",
"label": "Model",
"children": [
{
"type": "dict",
"collapsible": true,
"key": "ValidateModelName",
"label": "Validate Model Name",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "label",
"label": "Path to material file defining list of material names to check. This is material name per line simple text file.<br/>It will be checked against named group <b>shader</b> in your <em>Validation regex</em>.<p>For example: <br/> <code>^.*(?P=&lt;shader&gt;.+)_GEO</code></p>"
},
{
"type": "path-widget",
"key": "material_file",
"label": "Material File",
"multiplatform": true,
"multipath": false
},
{
"type": "text",
"key": "regex",
"label": "Validation regex"
}
]
"key": "SUFFIX_NAMING_TABLE",
"label": "Suffix Naming Table"
},
{
"type": "dict",
"collapsible": true,
"key": "ValidateTransformNamingSuffix",
"label": "ValidateTransformNamingSuffix",
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "label",
"label": "Validates transform suffix based on the type of its children shapes."
},
{
"type": "raw-json",
"key": "SUFFIX_NAMING_TABLE",
"label": "Suffix Naming Table"
},
{
"type": "boolean",
"key": "ALLOW_IF_NOT_IN_SUFFIX_TABLE",
"label": "Allow if suffix not in table"
}
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
{
"key": "ValidateColorSets",
"label": "ValidateColorSets"
},
{
"key": "ValidateMeshHasOverlappingUVs",
"label": "ValidateMeshHasOverlappingUVs"
},
{
"key": "ValidateMeshArnoldAttributes",
"label": "ValidateMeshArnoldAttributes"
},
{
"key": "ValidateMeshShaderConnections",
"label": "ValidateMeshShaderConnections"
},
{
"key": "ValidateMeshSingleUVSet",
"label": "ValidateMeshSingleUVSet"
},
{
"key": "ValidateMeshHasUVs",
"label": "ValidateMeshHasUVs"
},
{
"key": "ValidateMeshLaminaFaces",
"label": "ValidateMeshLaminaFaces"
},
{
"key": "ValidateMeshNonManifold",
"label": "ValidateMeshNonManifold"
},
{
"key": "ValidateMeshUVSetMap1",
"label": "ValidateMeshUVSetMap1",
"docstring": "Validate model's default uv set exists and is named 'map1'.<br><br>In Maya meshes by default have a uv set named 'map1' that cannot be deleted. It can be renamed, however,<br> introducing some issues with some renderers. As such we ensure the first (default) UV set index is named 'map1'."
},
{
"key": "ValidateMeshVerticesHaveEdges",
"label": "ValidateMeshVerticesHaveEdges"
},
{
"key": "ValidateNoAnimation",
"label": "ValidateNoAnimation",
"docstring": "Ensure no keyframes on nodes in the Instance.<br>Even though a Model would extract without animCurves correctly this avoids getting different <br> output from a model when extracted from a different frame than the first frame. (Might be overly restrictive though)."
},
{
"key": "ValidateNoNamespace",
"label": "ValidateNoNamespace"
},
{
"key": "ValidateNoNullTransforms",
"label": "ValidateNoNullTransforms"
},
{
"key": "ValidateNoUnknownNodes",
"label": "ValidateNoUnknownNodes"
},
{
"key": "ValidateNodeNoGhosting",
"label": "ValidateNodeNoGhosting"
},
{
"key": "ValidateShapeDefaultNames",
"label": "ValidateShapeDefaultNames"
},
{
"key": "ValidateShapeRenderStats",
"label": "ValidateShapeRenderStats"
},
{
"key": "ValidateTransformZero",
"label": "ValidateTransformZero"
}
]
"type": "boolean",
"key": "ALLOW_IF_NOT_IN_SUFFIX_TABLE",
"label": "Allow if suffix not in table"
}
]
},
@ -218,22 +139,105 @@
"name": "template_publish_plugin",
"template_data": [
{
"key": "ValidateCameraAttributes",
"label": "Validate Camera Attributes",
"docstring": ""
"key": "ValidateColorSets",
"label": "ValidateColorSets"
},
{
"key": "ValidateAssemblyName",
"label": "Validate Assembly Name"
"key": "ValidateMeshHasOverlappingUVs",
"label": "ValidateMeshHasOverlappingUVs"
},
{
"key": "ValidateAssRelativePaths",
"label": "ValidateAssRelativePaths"
"key": "ValidateMeshArnoldAttributes",
"label": "ValidateMeshArnoldAttributes"
},
{
"key": "ValidateMeshShaderConnections",
"label": "ValidateMeshShaderConnections"
},
{
"key": "ValidateMeshSingleUVSet",
"label": "ValidateMeshSingleUVSet"
},
{
"key": "ValidateMeshHasUVs",
"label": "ValidateMeshHasUVs"
},
{
"key": "ValidateMeshLaminaFaces",
"label": "ValidateMeshLaminaFaces"
},
{
"key": "ValidateMeshNonManifold",
"label": "ValidateMeshNonManifold"
},
{
"key": "ValidateMeshUVSetMap1",
"label": "ValidateMeshUVSetMap1",
"docstring": "Validate model's default uv set exists and is named 'map1'.<br><br>In Maya meshes by default have a uv set named 'map1' that cannot be deleted. It can be renamed, however,<br> introducing some issues with some renderers. As such we ensure the first (default) UV set index is named 'map1'."
},
{
"key": "ValidateMeshVerticesHaveEdges",
"label": "ValidateMeshVerticesHaveEdges"
},
{
"key": "ValidateNoAnimation",
"label": "ValidateNoAnimation",
"docstring": "Ensure no keyframes on nodes in the Instance.<br>Even though a Model would extract without animCurves correctly this avoids getting different <br> output from a model when extracted from a different frame than the first frame. (Might be overly restrictive though)."
},
{
"key": "ValidateNoNamespace",
"label": "ValidateNoNamespace"
},
{
"key": "ValidateNoNullTransforms",
"label": "ValidateNoNullTransforms"
},
{
"key": "ValidateNoUnknownNodes",
"label": "ValidateNoUnknownNodes"
},
{
"key": "ValidateNodeNoGhosting",
"label": "ValidateNodeNoGhosting"
},
{
"key": "ValidateShapeDefaultNames",
"label": "ValidateShapeDefaultNames"
},
{
"key": "ValidateShapeRenderStats",
"label": "ValidateShapeRenderStats"
},
{
"key": "ValidateTransformZero",
"label": "ValidateTransformZero"
}
]
}
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
{
"key": "ValidateCameraAttributes",
"label": "Validate Camera Attributes",
"docstring": ""
},
{
"key": "ValidateAssemblyName",
"label": "Validate Assembly Name"
},
{
"key": "ValidateAssRelativePaths",
"label": "ValidateAssRelativePaths"
}
]
},
{
"type": "splitter"
},
{
"type": "label",
"label": "Extractors"

View file

@ -1,162 +0,0 @@
{
"type": "dict",
"collapsible": true,
"key": "publish",
"label": "Publish plugins",
"children": [
{
"type": "dict",
"collapsible": true,
"key": "PreCollectNukeInstances",
"label": "PreCollectNukeInstances",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "sync_workfile_version",
"label": "Sync Version from workfile"
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ExtractThumbnail",
"label": "ExtractThumbnail",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "raw-json",
"key": "nodes",
"label": "Nodes"
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ValidateKnobs",
"label": "ValidateKnobs",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "raw-json",
"key": "knobs",
"label": "Knobs"
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ExtractReviewDataLut",
"label": "ExtractReviewDataLut",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
}
]
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ExtractReviewDataMov",
"label": "ExtractReviewDataMov",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "viewer_lut_raw",
"label": "Viewer LUT raw"
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "ExtractSlateFrame",
"label": "ExtractSlateFrame",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "viewer_lut_raw",
"label": "Viewer LUT raw"
}
]
},
{
"type": "dict",
"collapsible": true,
"key": "NukeSubmitDeadline",
"label": "NukeSubmitDeadline",
"is_group": true,
"children": [
{
"type": "number",
"key": "deadline_priority",
"label": "deadline_priority"
},
{
"type": "text",
"key": "deadline_pool",
"label": "deadline_pool"
},
{
"type": "text",
"key": "deadline_pool_secondary",
"label": "deadline_pool_secondary"
},
{
"type": "number",
"key": "deadline_chunk_size",
"label": "deadline_chunk_size"
}
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
{
"key": "ValidateOutputResolution",
"label": "Validate Output Resolution"
},
{
"key": "ValidateGizmo",
"label": "Validate Gizmo (Group)"
},
{
"key": "ValidateScript",
"label": "Validate script settings"
},
{
"key": "ValidateNukeWriteBoundingBox",
"label": "Validate and Write Bounding Box"
}
]
}
]
}

View file

@ -4,6 +4,10 @@
"key": "publish",
"label": "Publish plugins",
"children": [
{
"type": "label",
"label": "Collectors"
},
{
"type": "dict",
"collapsible": true,
@ -17,26 +21,13 @@
"label": "Sync Version from workfile"
}
]
},
{
"type": "splitter"
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ExtractThumbnail",
"label": "ExtractThumbnail",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "raw-json",
"key": "nodes",
"label": "Nodes"
}
]
"type": "label",
"label": "Validators"
},
{
"type": "dict",
@ -58,6 +49,55 @@
}
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
{
"key": "ValidateOutputResolution",
"label": "Validate Output Resolution"
},
{
"key": "ValidateGizmo",
"label": "Validate Gizmo (Group)"
},
{
"key": "ValidateScript",
"label": "Validate script settings"
},
{
"key": "ValidateNukeWriteBoundingBox",
"label": "Validate and Write Bounding Box"
}
]
},
{
"type": "splitter"
},
{
"type": "label",
"label": "Extractors"
},
{
"type": "dict",
"collapsible": true,
"checkbox_key": "enabled",
"key": "ExtractThumbnail",
"label": "ExtractThumbnail",
"is_group": true,
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "raw-json",
"key": "nodes",
"label": "Nodes"
}
]
},
{
"type": "dict",
"collapsible": true,
@ -108,24 +148,31 @@
]
},
{
"type": "schema_template",
"name": "template_publish_plugin",
"template_data": [
"type": "dict",
"collapsible": true,
"key": "NukeSubmitDeadline",
"label": "NukeSubmitDeadline",
"is_group": true,
"children": [
{
"key": "ValidateOutputResolution",
"label": "Validate Output Resolution"
"type": "number",
"key": "deadline_priority",
"label": "deadline_priority"
},
{
"key": "ValidateGizmo",
"label": "Validate Gizmo (Group)"
"type": "text",
"key": "deadline_pool",
"label": "deadline_pool"
},
{
"key": "ValidateScript",
"label": "Validate script settings"
"type": "text",
"key": "deadline_pool_secondary",
"label": "deadline_pool_secondary"
},
{
"key": "ValidateNukeWriteBoundingBox",
"label": "Validate and Write Bounding Box"
"type": "number",
"key": "deadline_chunk_size",
"label": "deadline_chunk_size"
}
]
}