cedricduriau / Cryptomatte

Cryptomatte Nuke plugin, sample images, and specification
BSD 3-Clause "New" or "Revised" License
6 stars 1 forks source link

Improve no cryptomatte metadata handling #47

Closed cedricduriau closed 3 years ago

cedricduriau commented 3 years ago

Images without cryptomatte metadata will fail due to the layer index/id check. A better error could be raised.

[Cryptomatte][dev][ERROR] layer  (index 1) not present in metadata
...Cryptomatte/fusion/Modules/Lua/cryptomatte_utilities.lua:614: ERROR
stack traceback:
    [C]: in function 'error'
    ...Cryptomatte/fusion/Modules/Lua/cryptomatte_utilities.lua:614: in function 'log_error'
    ...iau/repo/Cryptomatte/fusion/Fuses/Matte/cryptomatte.fuse:280: in function <...iau/repo/Cryptomatte/fusion/Fuses/Matte/cryptomatte.fuse:249>
dev failed at time 1001