Fix writeCreases support

This commit is contained in:
Roy Nieterau 2024-05-01 16:12:17 +02:00
parent 8567e54bb4
commit 665a4e226a
2 changed files with 13 additions and 0 deletions

View file

@ -63,6 +63,7 @@ class ExtractAlembic(publish.Extractor, AYONPyblishPluginMixin):
wholeFrameGeo = False wholeFrameGeo = False
worldSpace = True worldSpace = True
writeColorSets = False writeColorSets = False
writeCreases = False
writeFaceSets = False writeFaceSets = False
writeNormals = True writeNormals = True
writeUVSets = False writeUVSets = False
@ -354,6 +355,13 @@ class ExtractAlembic(publish.Extractor, AYONPyblishPluginMixin):
default=cls.writeColorSets, default=cls.writeColorSets,
tooltip="Write vertex colors with the geometry." tooltip="Write vertex colors with the geometry."
), ),
"writeCreases": BoolDef(
"writeCreases",
label="Write Creases",
default=cls.writeCreases,
tooltip="Write the geometry's edge and vertex crease "
"information."
),
"writeFaceSets": BoolDef( "writeFaceSets": BoolDef(
"writeFaceSets", "writeFaceSets",
label="Write Face Sets", label="Write Face Sets",

View file

@ -406,6 +406,10 @@ class ExtractAlembicModel(BaseSettingsModel):
title="Write Color Sets", title="Write Color Sets",
description="Write vertex colors with the geometry." description="Write vertex colors with the geometry."
) )
writeCreases: bool = SettingsField(
title="Write Creases",
description="Write the geometry's edge and vertex crease information."
)
writeFaceSets: bool = SettingsField( writeFaceSets: bool = SettingsField(
title="Write Face Sets", title="Write Face Sets",
description="Write face sets with the geometry." description="Write face sets with the geometry."
@ -1643,6 +1647,7 @@ DEFAULT_PUBLISH_SETTINGS = {
"wholeFrameGeo": False, "wholeFrameGeo": False,
"worldSpace": True, "worldSpace": True,
"writeColorSets": False, "writeColorSets": False,
"writeCreases": False,
"writeFaceSets": False, "writeFaceSets": False,
"writeNormals": True, "writeNormals": True,
"writeUVSets": False, "writeUVSets": False,