Hello everyone,
I would still consider myself more of a beginner. At the moment, I’m working on a network which I call “gradientGrid.” So far, I’ve been able to implement the following processes functionally:
- Generating a Table DAT based on the number of rows and columns from a Constant CHOP, to calculate the Crop Left, Crop Right, Crop Bottom, Crop Top values of individual cells/segments.
- Within “Container1,” using a Replicator COMP based on the generated Table DAT to divide the texture into individual segments.
- Within the replicated “segment*” Container COMPs: Analyzing the individual segments to obtain the minimum pixel color, average color, and maximum pixel color.
- Within the replicated “segment*” Container COMPs: Creating a gradient with a Ramp TOP from the 3 obtained colors.
input TOP
Now, I want to reassemble the individual segments into one TOP. In the end, the input TOP should be “pixelated/segmented” according to the number of rows and columns, with each segment represented as a gradient. The segments are divided as follows:
7 8 9
4 5 6
1 2 3
Starting from bottom left, moving left to right & bottom to top, ending at top right.
Problem 1:
I tried using a Layout TOP, but I couldn’t properly assemble the segments regardless of whether I set Align to “Left to Right,” “Grid Rows,” or “Grid Columns.” Unfortunately, none of the “Grid” Align options seem to fit my use case, and it also doesn’t seem possible to set the direction. I could assemble the whole thing in two steps. First, assembling the individual segments into rows with Align set to “Left to Right.” And then assembling the resulting rows with Align set to “Bottom to Top.” But isn’t there a simpler method?
Problem 2:
Another problem seems to be that somehow the “out1” TOPs (=gradients) are not being updated correctly. Initially, in “container1/layout1,” all segments display the same “out1,” and it’s only when I manually click into those “segment*” containers (which should actually be different) that they are displayed correctly. To debug, I created another layout TOP “container1/layout2,” which taps into the “out2” (=segments before gradient). These seem to be “correctly” updated.
gradientGrid_wip6.12.toe (8.6 KB)