mgSampler node evaluates shading network for given set of points. Takes array of points as an input, performs sampling of connected texture. Finally outputs arrays with sampled data:
Example mgSampler network
Per-point sampling coordinates are based on input vector, given in node Uv Name attribute. If Uv Name attribute is empty, then value „map1” is assumed, which reflects default Maya UV set name. Sampling results are exported to output vector under identifier specified in Attr Name:
Sample Color, export it in array named noise
Results of mgSampler node computations can be later accessed in mgAutomata node.