I suspect you need 4.27 as the release notes mention the following:
The Object ID render pass has been improved, adding support for grouping ID’s in a variety of ways. You can now group your objects based on actor name, material, folder, and more.
I suspect you need 4.27 as the release notes mention the following:
The Object ID render pass has been improved, adding support for grouping ID’s in a variety of ways. You can now group your objects based on actor name, material, folder, and more.