callv(), much like call_deferred() are functions that exist on the Object class, and deal with calling functions that belong to that object.
In this case it might help to understand if you imagine your code as self.callv()
It only has access to functions in the caller class. The purpose of it is to call a function by a string. So you might want to call a function on another object, like other_object.callv(“other_func”, 1)
So this will not work on anything other than functions that belong to the caller object making the call. As you said, min() is a built-in, so it’s not part of your object.
Thanks for your answer! That’s what I was afraid of… too bad, I will have to find another way!
So, if I understand well, the only difference between call() and callv() is the number of possible arguments and the syntax?
Matt_UV | 2017-02-05 16:04
Your work around of minimum() is likely fine.
As for what they do, they both return variant results, and it does seem the differences are in the parameter signature. One is comma separated arguments and the other is an array of arguments.