Expose bake attribute prefixes, plus make settings just a list of strings

This commit is contained in:
Roy Nieterau 2024-03-24 10:37:31 +01:00
parent 404681e684
commit 3d9cd57df0
2 changed files with 15 additions and 12 deletions

View file

@ -299,10 +299,15 @@ class ExtractAlembicModel(BaseSettingsModel):
families: list[str] = SettingsField(
default_factory=list,
title="Families")
bake_attributes: str = SettingsField(
"[]", title="Bake Attributes", widget="textarea",
bake_attributes: list[str] = SettingsField(
"", title="Bake Attributes", widget="textarea",
description="List of attributes that will be included in the alembic "
"export.",
),
bake_attribute_prefixes: list[str] = SettingsField(
"", title="Bake Attribute Prefixes", widget="textarea",
description="List of attribute prefixes for attributes that will be "
"included in the alembic export.",
)
@ -1199,7 +1204,8 @@ DEFAULT_PUBLISH_SETTINGS = {
"model",
"vrayproxy.alembic"
],
"bake_attributes": "[]"
"bake_attributes": [],
"bake_attribute_prefixes": [],
},
"ExtractObj": {
"enabled": False,