johnzero7 / XNALaraMesh

Blender addon Import/Export XPS Models, Poses
526 stars 94 forks source link

problem with Filmic #54

Closed ghost closed 4 years ago

ghost commented 5 years ago

Traceback (most recent call last): File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/xps_tools.py", line 164, in execute status = import_xnalara_model.getInputFilename(xpsSettings) File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/import_xnalara_model.py", line 78, in getInputFilename status = xpsImport() File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/import_xnalara_model.py", line 156, in xpsImport meshes_obs = importMeshesList(armature_ob) File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/import_xnalara_model.py", line 475, in importMeshesList for meshInfo in newMeshes] File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/import_xnalara_model.py", line 475, in for meshInfo in newMeshes] File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/import_xnalara_model.py", line 612, in importMesh material_creator.makeMaterial(xpsSettings, rootDir, mesh_da, meshInfo, flags) File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/material_creator.py", line 170, in makeMaterial makeNodesMaterial(xpsSettings, materialData, rootDir, mesh_da, meshInfo, flags) File "/home/danilop/.programas/blender-2.80/2.80/scripts/addons/XNALaraMesh/material_creator.py", line 259, in makeNodesMaterial imageNode.image.colorspace_settings.name = COLOR_SPACE_NONE TypeError: bpy_struct: item.attr = val: enum "Non-Color" not found in ('AppleP3 Filmic Log Encoding', 'AppleP3 sRGB OETF', 'BT.1886 EOTF', 'BT.1886 Filmic Log Encoding', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB OETF')

location: :-1

johnzero7 commented 5 years ago

Can't find any issue with the color managment. Are you using Blender 2.80 Release and the latest ver of the addon (XPS 2.0.0) ?

ghost commented 5 years ago

Can't find any issue with the color managment. Are you using Blender 2.80 Release and the latest ver of the addon (XPS 2.0.0) ?

sorry, my mistake this filmic https://github.com/sobotka/filmic-blender

johnzero7 commented 4 years ago

Finally corrected this. Mark image using property 'is_data' instead of manipulating colorspace manually.