Download the substance files for free:
https://linktr.ee/moohnfa
Substance Quicktips 02
__
I developed this node some time ago, which complements my recent post about material size. If you want to get a little more into substance to learn more about pixel processor, this is a fun project to dive into.
__
The node draws a bounding box around a shape and calculates its size and surface area. With this node, you can check the size of different objects in your texture to ensure they have the correct dimensions relative to your material size. The node has some limitations due to the min and max functions in Designer. Since the node outputs the bounding box and coordinates, you can do a lot more than just calculate the size; you can also automatically resize the shape to fit the whole space, or just manipulate the shape.
__
The node works by multiplying a one-directional gradient with the shape. The shape cuts off the full range (0-1) of the gradient, and we will have new min-max values. By these values, we can determine the coordinates of the most outer pixel in one dimension and draw a bounding box around the shape. It then cycles through all the min and max values of the x and y coordinates. From these coordinates, you can then calculate the size or resize your shape.