Skip to content

Commit

Permalink
Add toggle to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Jul 5, 2024
1 parent e584296 commit 2a1e32e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions server/settings/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,17 @@ class BasicEnabledStatesModel(BaseSettingsModel):
active: bool = SettingsField(title="Active")


class AyonEntityURIModel(BaseSettingsModel):
use_ayon_entity_uri: bool = SettingsField(
title="Use AYON Entity URI",
description=(
"When enabled the USD paths written using the contribution "
"workflow will use ayon entity URIs instead of resolved published "
"paths. You can only load these if you use the AYON USD Resolver."
)
)


class PublishPluginsModel(BaseSettingsModel):
CollectAssetHandles: CollectAssetHandlesModel = SettingsField(
default_factory=CollectAssetHandlesModel,
Expand Down Expand Up @@ -142,6 +153,14 @@ class PublishPluginsModel(BaseSettingsModel):
title="Extract Active View Thumbnail",
section="Extractors"
)
ExtractUSDAssetContribution: AyonEntityURIModel = SettingsField(
default_factory=AyonEntityURIModel,
title="Extract USD Asset Contribution",
)
ExtractUSDLayerContribution: AyonEntityURIModel = SettingsField(
default_factory=AyonEntityURIModel,
title="Extract USD Layer Contribution",
)


DEFAULT_HOUDINI_PUBLISH_SETTINGS = {
Expand Down Expand Up @@ -214,5 +233,11 @@ class PublishPluginsModel(BaseSettingsModel):
"enabled": True,
"optional": False,
"active": True
},
"ExtractUSDAssetContribution": {
"use_ayon_entity_uri": True,
},
"ExtractUSDLayerContribution": {
"use_ayon_entity_uri": True,
}
}

0 comments on commit 2a1e32e

Please sign in to comment.