cedricduriau / Cryptomatte

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

Support string pattern matching #24

Open cedricduriau opened 3 years ago

cedricduriau commented 3 years ago

Support string pattern matching as matte selection mode.

Nuke Python Implementation

The Python implementation of Cryptomatte implemented this feature through the builtin POSIX fnmatch library. See documentation here.

Fusion Lua Implementation Research

Sadly the Lua standard library does not include POSIX support. It does ship with a builtin pattern matching syntax. See documentation here and tutorial here.

There is an external Lua module available for POSIX support. See repository here.

Comparison

Using string.gmatch

Pros:

Cons:

Using posix.fnmatch

Pros:

Cons:

Links