mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Add toggle to settings
This commit is contained in:
parent
f1aed92d79
commit
104e03b13d
1 changed files with 25 additions and 0 deletions
|
|
@ -84,6 +84,17 @@ class CollectUSDLayerContributionsModel(BaseSettingsModel):
|
|||
return value
|
||||
|
||||
|
||||
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 PluginStateByHostModelProfile(BaseSettingsModel):
|
||||
_layout = "expanded"
|
||||
# Filtering
|
||||
|
|
@ -857,6 +868,14 @@ class PublishPuginsModel(BaseSettingsModel):
|
|||
default_factory=ExtractBurninModel,
|
||||
title="Extract Burnin"
|
||||
)
|
||||
ExtractUSDAssetContribution: AyonEntityURIModel = SettingsField(
|
||||
default_factory=AyonEntityURIModel,
|
||||
title="Extract USD Asset Contribution",
|
||||
)
|
||||
ExtractUSDLayerContribution: AyonEntityURIModel = SettingsField(
|
||||
default_factory=AyonEntityURIModel,
|
||||
title="Extract USD Layer Contribution",
|
||||
)
|
||||
PreIntegrateThumbnails: PreIntegrateThumbnailsModel = SettingsField(
|
||||
default_factory=PreIntegrateThumbnailsModel,
|
||||
title="Override Integrate Thumbnail Representations"
|
||||
|
|
@ -1161,6 +1180,12 @@ DEFAULT_PUBLISH_VALUES = {
|
|||
}
|
||||
]
|
||||
},
|
||||
"ExtractUSDAssetContribution": {
|
||||
"use_ayon_entity_uri": True,
|
||||
},
|
||||
"ExtractUSDLayerContribution": {
|
||||
"use_ayon_entity_uri": True,
|
||||
},
|
||||
"PreIntegrateThumbnails": {
|
||||
"enabled": True,
|
||||
"integrate_profiles": []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue