cedricduriau / Cryptomatte

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

Improve unknown layer index/id handling #43

Closed cedricduriau closed 3 years ago

cedricduriau commented 3 years ago

When the layer index/id set on the fuse does not exist in the current frame metadata, an error occurs. This scenario should raise an error with an appropriate message.

...iau/repo/Cryptomatte/fusion/Fuses/Matte/cryptomatte.fuse:303: attempt to index a nil value
stack traceback:
    ...iau/repo/Cryptomatte/fusion/Fuses/Matte/cryptomatte.fuse:303: in function <...iau/repo/Cryptomatte/fusion/Fuses/Matte/cryptomatte.fuse:249>
dev failed at time 971