Fix namespace stripping for maya node names in cryptomatte
Gaetan Guidet
Branch: gatgui/alshaders:PR-mtoa-strip-namespace
Branch: anderslanglands/alshaders:master
Merged
Merged pull request
Merged in gatgui/alshaders/PR-mtoa-strip-namespace (pull request #35)
In Maya, when using maya instances, MtoA outputs node names containing the '|' path separator (the maya partial path name).
This has to be taken into account when stripping namespace for arnold node names.
Right now, only the namespace of the first node in the partial path is stripped, i.e. a node named "ns:group|ns:cube1|ns:cubeShape" will become "group|ns:cube1|ns:cubeShape". This should be transformed into "group|cube1|cubeShape".