vexpr only outputs one value or none


    Oct 08 2016 | 2:46 pm
    It's been a long day, and this is probably something really dumb that I'm just not grasping, but I've been trying to fix it for like 2 hours with no luck so I'll show some humility I guess.
    So in this patch I'm trying to interpolate between the lists of values outputted by two multisliders, and send the interpolated list to a third multislider. When I try to this though, depending on how I format the expression, I receive either a single value, or no value at all. Can someone explain what I'm doing wrong here? Is there some fundamental part of vexpr I'm misunderstanding?

    • Oct 08 2016 | 5:12 pm
      So I figured out the problem (and how to properly add a patch to a post). Apparently it was because I didn't have scalar mode on. I don't actually fully understand WHAT scalar does, but I guess if some other dopey new guy like me gets lost doing the same thing, they can find this post....
    • Oct 09 2016 | 10:03 pm
      Without @scalarmode 1, the second input must be a list, like in the first input - actually, the list output by vexpr will be the size of the smallest list (first or second input). With @scalarmode 1, the second input may be a number, which is interpreted as a list the size of the list in the first input.