use semantic field in file attributes to specify images and store displayed node in 2D viewer to adapt UI

This commit is contained in:
Loïc Vital 2022-09-20 18:26:20 +02:00 committed by Fabien Castan
parent fc5ab540f5
commit a574c0fc9b
9 changed files with 139 additions and 83 deletions

View file

@ -342,14 +342,23 @@ Many cameras are contributing to the low frequencies and only the best ones cont
uid=[],
group='',
),
#desc.File(
# name='outputTextures',
# label='Textures',
# description='Output Texture files.',
# value= lambda attr: desc.Node.internalFolder + 'texture_*.' + attr.node.colorMapping.colorMappingFileType.value if attr.node.colorMapping.enable.value else '',
# uid=[],
# group='',
# ),
desc.File(
name='outputTextures',
label='Textures',
description='Output Texture files.',
value= lambda attr: desc.Node.internalFolder + 'texture_*.' + attr.node.colorMapping.colorMappingFileType.value if attr.node.colorMapping.enable.value else '',
semantic='image',
value=desc.Node.internalFolder+'texture_*.exr',
uid=[],
group='',
),
group=''
)
]
def upgradeAttributeValues(self, attrValues, fromVersion):