Trim
Auto-crops transparent edges from an image, tightening the bounding box around visible content.
Trim crops away the empty border around an image’s content, leaving the content plus an optional padding margin. By default it treats transparent pixels as empty; the two corner-color modes instead trim pixels matching the top-left or bottom-right corner, which handles solid white or black borders on images without transparency. Use it early in a pipeline so every frame starts from a tight crop before effects are applied.
Texture sets
Section titled “Texture sets”Trim accepts a whole texture set. The rectangle is measured from the set’s Opacity and from nothing else, then applied to every map, so a Base Color that happens to be opaque everywhere, or a corner color that matches the interior, cannot move it. All three detection modes read that one plane, which is why over a set they are named Transparent Pixels, Top-Left Opacity, and Bottom-Right Opacity. The Normal is unchanged. A library is trimmed set by set, each to its own Opacity.
Parameters
Section titled “Parameters”Pins
Trim
A texture set is always trimmed by its Opacity, so every map keeps the same rectangle
Cutoff between content and background.
- Transparent Pixels: pixels with alpha above this are content. 0 = any visible pixel.
- Top-Left Color / Bottom-Right Color: how far a color may be from the corner color and still be trimmed. 0 = exact match only.
On a texture set it is read against the set's Opacity, which runs 0 to 1.
Extra pixels to keep around the trimmed content. Added equally on all sides
Usage Tips
Section titled “Usage Tips”- Put Trim right after Image In to remove extra transparent space from source assets, and add a few pixels of Padding as a safety margin.
- Threshold defaults to 30, so faint pixels (alpha 30 or below) are trimmed along with fully transparent ones. Set it to 0 to keep every visible pixel, such as a soft shadow’s outer edge.