generated from ynput/ayon-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from BigRoy/enhancement/usd_load_ayon_uri
Load USD loaders with filepath from entity URI
- Loading branch information
Showing
12 changed files
with
150 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from ayon_server.settings import BaseSettingsModel, SettingsField | ||
|
||
|
||
# Load Plugins | ||
class LoadUseAYONEntityURIModel(BaseSettingsModel): | ||
use_ayon_entity_uri: bool = SettingsField( | ||
False, | ||
title="Use AYON Entity URI", | ||
description=( | ||
"Use the AYON Entity URI on load instead of the resolved filepath " | ||
"so that the AYON USD Resolver will resovle the paths at runtime. " | ||
"This should be enabled when using the AYON USD Resolver." | ||
) | ||
) | ||
|
||
|
||
class LoadPluginsModel(BaseSettingsModel): | ||
LOPLoadAssetLoader: LoadUseAYONEntityURIModel = SettingsField( | ||
default_factory=LoadUseAYONEntityURIModel, | ||
title="LOP Load Asset") | ||
LOPLoadShotLoader: LoadUseAYONEntityURIModel = SettingsField( | ||
default_factory=LoadUseAYONEntityURIModel, | ||
title="LOP Load Shot") | ||
USDSublayerLoader: LoadUseAYONEntityURIModel = SettingsField( | ||
default_factory=LoadUseAYONEntityURIModel, | ||
title="USD Sublayer Loader") | ||
USDReferenceLoader: LoadUseAYONEntityURIModel = SettingsField( | ||
default_factory=LoadUseAYONEntityURIModel, | ||
title="USD Reference Loader") | ||
SopUsdImportLoader: LoadUseAYONEntityURIModel = SettingsField( | ||
default_factory=LoadUseAYONEntityURIModel, | ||
title="USD SOP Import Loader") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters