mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
use dict as item values for export channel settings
This commit is contained in:
parent
2dd6c12390
commit
9570d0baae
1 changed files with 30 additions and 12 deletions
|
|
@ -97,20 +97,38 @@ class CreateTextures(Creator):
|
|||
return instance
|
||||
|
||||
def get_instance_attr_defs(self):
|
||||
layer_stack_channel_enum = ["BaseColor", "Metallic", "Roughness",
|
||||
"Normal", "Height", "Specular",
|
||||
"SpecularEdgeColor", "Emissive", "Opacity",
|
||||
"Displacement", "Glossiness", "Anisotropylevel",
|
||||
"AO", "Anisotropyangle", "Transmissive",
|
||||
"Reflection", "Diffuse", "Ior",
|
||||
"Specularlevel", "BlendingMask", "Translucency",
|
||||
"Scattering", "ScatterColor", "SheenOpacity",
|
||||
"SheenRoughness", "SheenColor", "CoatOpacity",
|
||||
"CoatColor", "CoatRoughness", "CoatSpecularLevel",
|
||||
"CoatNormal"]
|
||||
return [
|
||||
EnumDef("exportChannel",
|
||||
items=layer_stack_channel_enum,
|
||||
items={
|
||||
"BaseColor": "Base Color",
|
||||
"Metallic": "Metallic",
|
||||
"Roughness": "Roughness",
|
||||
"SpecularEdgeColor": "Specular Edge Color",
|
||||
"Emissive": "Emissive",
|
||||
"Opacity": "Opacity",
|
||||
"Displacement": "Displacement",
|
||||
"Glossiness": "Glossiness",
|
||||
"Anisotropylevel": "Anisotropy Level",
|
||||
"AO": "Ambient Occulsion",
|
||||
"Anisotropyangle": "Anisotropy Angle",
|
||||
"Transmissive": "Transmissive",
|
||||
"Reflection": "Reflection",
|
||||
"Diffuse": "Diffuse",
|
||||
"Ior": "Index of Refraction",
|
||||
"Specularlevel": "Specular Level",
|
||||
"BlendingMask": "Blending Mask",
|
||||
"Translucency": "Translucency",
|
||||
"Scattering": "Scattering",
|
||||
"ScatterColor": "Scatter Color",
|
||||
"SheenOpacity": "Sheen Opacity",
|
||||
"SheenRoughness": "Sheen Roughness",
|
||||
"SheenColor": "Sheen Color",
|
||||
"CoatOpacity": "Coat Opacity",
|
||||
"CoatColor": "Coat Color",
|
||||
"CoatRoughness": "Coat Roughness",
|
||||
"CoatSpecularLevel": "Coat Specular Level",
|
||||
"CoatNormal": "Coat Normal",
|
||||
},
|
||||
multiselection=True,
|
||||
default=None,
|
||||
label="Export Channel(s)",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue