Hey there,
I’ve noticed a possible bug (or intended?) while using OutputStruct and multi-layered choosers. When the result row is from within an evaluated chooser, the value of the OutputStruct is taken from the first Output struct in these layers. The repro below should explain the problem more clearly. I would expect this “overwrite” of the result row to happen only if the OutputStruct on the higher layer actually specifies a value - in the repro case, I would expect it to act as a fall-through.
Repro:
- Create a struct type that contains arbitrary data, in our example, just a single float
- Create 2 choosers with the same signature (same result, same parameters)
- One of the outputs is the struct from step 1.
- In the parent chooser, create 2 chooser rows and 2 chooser columns like so:
- [Image Removed]
- The 1st row is an evaluate chooser
- The 2nd row is an asset result
- [Image Removed]
- In the child chooser (that’s used as an evaluate chooser), create 1 chooser row and 2 chooser columns:
- [Image Removed]
- Bug? When you evaluate this parent chooser with “UseEvaluate=true”, the value of the `OutputStruct` is taken from the parent chooser instead of the chosen row from the Evaluated chooser.
- [Image Removed] - once called with `UseEvaluate=true` once with `UseEvaluate=false`.
Hopefully the repro makes it clear, I can provide more information if not, thanks!
[Attachment Removed]