ID Masking + Randomization nodegroup
“ID Masking” node groups designed to optimize a workflow of creating product CGI where usually product have several textures for a certain objects such as labels, packaging and etc and the only difference they have is a color/value input, but the main shader settings are consistent. By using this nodegroups you can speed up the process of creating still images or animation by simply changing Pass Index of the object without having to change color input over and over again.
Features
- Coloring and Masking based on a Pass index of the object.
- Randomization of the predefined inputs for a specific object (Pass index not equal to 0)
- Randomization of the predefined inputs for all objects with ID Masking Node. (Pass index have no matter here)
Explanation
Modes
1. Default - Set a specific color or value for a specific Pass Index (0)
2. Randomize predefined colors and values of the objects with a Pass Index (not equal to 0). B[/B]
3. Randomization predefined colors and values for all objects, which have been assigned the material. B[/B]
Seed - too obvious to explain.
***
Drawbacks
- Currently ID Masking works only with Pass Index for a specific object, not a separated loose parts of the mesh and unlikely its require some hardcoding from a devs. So it’s kinda useless with a foliage of the trees, with a grass and etc. I hope some days they will implement something like Multimap with a few crucial option (Proper MatID, Input Counts, Randomization Control and etc).
- ID Offset doesn’t work as it should so it’s not implemented
Things to do
- Create a script that allows you to randomly apply Pass index to a selection based on a specific range of value.
- Find easy way to use more than 10 ID.
- More examples
GIF examples
Seed example http://i.imgur.com/Qw5EBjN.gifv
Production Examples (with old verson)
http://i.imgur.com/105tkxc.gif
http://i.imgur.com/2DwEBwn.gifv
[B][B]http://i.imgur.com/GtknTc6.gifv
[/B][/B]
Gumroad https://gumroad.com/l/b3d_ObjectID_Masking