texture publishing initial commit

This commit is contained in:
Ondrej Samohel 2022-03-29 23:11:29 +02:00
parent 572e640303
commit 461bf75d66
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
5 changed files with 48 additions and 3 deletions

View file

@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
"""Validator for correct file naming."""
import pyblish.api
import openpype.api
from openpype.pipeline import PublishXmlValidationError
class ValidateSimpleUnrealTextureNaming(pyblish.api.InstancePlugin):
label = "Validate Unreal Texture Names"
hosts = ["standalonepublisher"]
families = ["simpleUnrealTexture"]
order = openpype.api.ValidateContentsOrder
def process(self, instance):
...

View file

@ -107,7 +107,8 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin):
"hda",
"usd",
"usdComposition",
"usdOverride"
"usdOverride",
"simpleUnrealTexture"
]
exclude_families = ["clip"]
db_representation_context_keys = [

View file

@ -32,5 +32,14 @@
"file": "{subset}_{@version}<_{output}><.{@frame}>.{ext}",
"path": "{@folder}/{@file}"
},
"others": {}
"others": {
"simpleUnrealTexture": {
"folder": "{root[work]}/{project[name]}/{hierarchy}/{asset}/publish/{family}",
"file": "{original_file}",
"path": "{@folder}/{@file}"
},
"__dynamic_keys_labels__": {
"simpleUnrealTexture": "Simple Unreal Texture"
}
}
}

View file

@ -192,6 +192,17 @@
"task_types": [],
"tasks": [],
"template_name": "render"
},
{
"families": [
"simpleUnrealTexture"
],
"hosts": [
"standalonepublisher"
],
"task_types": [],
"tasks": [],
"template_name": "simpleUnrealTexture"
}
],
"subset_grouping_profiles": [

View file

@ -133,6 +133,14 @@
],
"help": "Texture files with UDIM together with worfile"
},
"create_simple_unreal_texture": {
"name": "simple_unreal_texture",
"label": "Simple Unreal Texture",
"family": "simpleUnrealTexture",
"icon": "Image",
"defaults": [],
"help": "Texture files with Unreal naming convention"
},
"__dynamic_keys_labels__": {
"create_workfile": "Workfile",
"create_model": "Model",
@ -145,7 +153,8 @@
"create_matchmove": "Matchmove",
"create_render": "Render",
"create_mov_batch": "Batch Mov",
"create_texture_batch": "Batch Texture"
"create_texture_batch": "Batch Texture",
"create_simple_unreal_texture": "Simple Unreal Texture"
}
},
"publish": {