Merge pull request #3080 from pypeclub/enhancement/OP-3043_vdb-and-bgeo-support

Standalone publisher: add support for bgeo and vdb
This commit is contained in:
Ondřej Samohel 2022-04-22 10:38:29 +02:00 committed by GitHub
commit 7e7fca00ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 4 deletions

View file

@ -247,7 +247,8 @@ class CollectContextDataSAPublish(pyblish.api.ContextPlugin):
self.log.debug("collecting sequence: {}".format(collections))
instance.data["frameStart"] = int(component["frameStart"])
instance.data["frameEnd"] = int(component["frameEnd"])
instance.data["fps"] = int(component["fps"])
if component.get("fps"):
instance.data["fps"] = int(component["fps"])
ext = component["ext"]
if ext.startswith("."):

View file

@ -141,6 +141,14 @@
"defaults": [],
"help": "Texture files with Unreal naming convention"
},
"create_vdb": {
"name": "vdb",
"label": "VDB Volumetric Data",
"family": "vdbcache",
"icon": "cloud",
"defaults": [],
"help": "Hierarchical data structure for the efficient storage and manipulation of sparse volumetric data discretized on three-dimensional grids"
},
"__dynamic_keys_labels__": {
"create_workfile": "Workfile",
"create_model": "Model",
@ -154,7 +162,8 @@
"create_render": "Render",
"create_mov_batch": "Batch Mov",
"create_texture_batch": "Batch Texture",
"create_simple_unreal_texture": "Simple Unreal Texture"
"create_simple_unreal_texture": "Simple Unreal Texture",
"create_vdb": "VDB Cache"
}
},
"publish": {

View file

@ -37,6 +37,10 @@ class DropDataFrame(QtWidgets.QFrame):
"video_file": video_extensions
}
sequence_types = [
".bgeo", ".vdb"
]
def __init__(self, parent):
super().__init__()
self.parent_widget = parent
@ -176,7 +180,7 @@ class DropDataFrame(QtWidgets.QFrame):
non_collectionable_paths = []
for path in in_paths:
ext = os.path.splitext(path)[1]
if ext in self.image_extensions:
if ext in self.image_extensions or ext in self.sequence_types:
collectionable_paths.append(path)
else:
non_collectionable_paths.append(path)
@ -289,7 +293,7 @@ class DropDataFrame(QtWidgets.QFrame):
def get_file_data(self, data):
filepath = data['files'][0]
ext = data['ext'].lower()
output = {}
output = {"fps": None}
file_info = None
if 'file_info' in data:

View file

@ -52,6 +52,7 @@ class FamilyDescriptionWidget(QtWidgets.QWidget):
family.setAlignment(QtCore.Qt.AlignBottom | QtCore.Qt.AlignLeft)
help = QtWidgets.QLabel("help")
help.setWordWrap(True)
help.setAlignment(QtCore.Qt.AlignTop | QtCore.Qt.AlignLeft)
label_layout.addWidget(family)