so i tried recreating one of my old blocks with snaps new variadic handling, but for some reason, snap thinks the variable doesnt exist in the context, I even tried using the metaprogramming library to force the context of the caller on to the vaiables/set block but it still errors.
This block is like for each but it runs the action once everytime you click on it and using block variables it changes the variables when it is ran again. (EXAMPLE:
Second of all, you'll have to teach me how you make a variadic upvar!
But also, I think the problem is that those upvars don't belong to the caller of your block, but rather to your block itself. So the CALLER OF CALLER OF is wrong. I think.
Which you can then just edit the input like normal to choose default names, and min and max slots.
This is different from the "variables" input type, because it's literally just a variadic upvar, whereas the "variables" input type is a special type that can't be customized.
However it doesn't seem like the variables are even created, so you have to
manually create them before setting them.
Even if you don't try to set the variable, it will also not exist