mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
cosmetic fix
This commit is contained in:
parent
ca442c52cd
commit
5bb61efab2
2 changed files with 36 additions and 32 deletions
|
|
@ -36,7 +36,8 @@ def _convert(substance_attr):
|
|||
root = getattr(root, attr, None)
|
||||
if root is None:
|
||||
raise ValueError(
|
||||
f"Substance Painter project attribute does not exist: {substance_attr}")
|
||||
"Substance Painter project attribute"
|
||||
f" does not exist: {substance_attr}")
|
||||
|
||||
return root
|
||||
|
||||
|
|
@ -101,7 +102,8 @@ class SubstanceLoadProjectMesh(load.LoaderPlugin):
|
|||
def load(self, context, name, namespace, options=None):
|
||||
|
||||
# Get user inputs
|
||||
template_enum = [template["name"] for template in self.project_templates]
|
||||
template_enum = [template["name"] for template
|
||||
in self.project_templates]
|
||||
window = SubstanceProjectConfigurationWindow(template_enum)
|
||||
window.exec_()
|
||||
template_name = window.template_name
|
||||
|
|
|
|||
|
|
@ -74,10 +74,10 @@ class ProjectTemplatesModel(BaseSettingsModel):
|
|||
|
||||
|
||||
class ProjectTemplateSettingModel(BaseSettingsModel):
|
||||
project_templates: list[ProjectTemplatesModel] = SettingsField(
|
||||
project_templates: list[ProjectTemplatesModel] = SettingsField(
|
||||
default_factory=ProjectTemplatesModel,
|
||||
title="Project Templates"
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class LoadersModel(BaseSettingsModel):
|
||||
|
|
@ -88,33 +88,35 @@ class LoadersModel(BaseSettingsModel):
|
|||
|
||||
|
||||
DEFAULT_LOADER_SETTINGS = {
|
||||
"SubstanceLoadProjectMesh":{
|
||||
"project_templates": [{
|
||||
"name": "2K(Default)",
|
||||
"default_texture_resolution": 2048,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.DirectX",
|
||||
"project_workflow": "ProjectWorkflow.Default",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
},
|
||||
{
|
||||
"name": "2K(UV tile)",
|
||||
"default_texture_resolution": 2048,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.DirectX",
|
||||
"project_workflow": "ProjectWorkflow.UVTile",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
},
|
||||
{
|
||||
"name": "4K(Custom)",
|
||||
"default_texture_resolution": 4096,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.OpenGL",
|
||||
"project_workflow": "ProjectWorkflow.UVTile",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
}]
|
||||
"SubstanceLoadProjectMesh": {
|
||||
"project_templates": [
|
||||
{
|
||||
"name": "2K(Default)",
|
||||
"default_texture_resolution": 2048,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.DirectX",
|
||||
"project_workflow": "ProjectWorkflow.Default",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
},
|
||||
{
|
||||
"name": "2K(UV tile)",
|
||||
"default_texture_resolution": 2048,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.DirectX",
|
||||
"project_workflow": "ProjectWorkflow.UVTile",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
},
|
||||
{
|
||||
"name": "4K(Custom)",
|
||||
"default_texture_resolution": 4096,
|
||||
"import_cameras": True,
|
||||
"normal_map_format": "NormalMapFormat.OpenGL",
|
||||
"project_workflow": "ProjectWorkflow.UVTile",
|
||||
"tangent_space_mode": "TangentSpace.PerFragment",
|
||||
"preserve_strokes": True
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue