Closed loopier closed 9 months ago
This happens for commands (like /color
) that are executed from the code editor, where the arguments are all strings. When executed from OSC (e.g. from SC), they typically come in with the correct type (e.g. float), so the call succeeds. This is related (due) to this issue, since these coreCommands
are called using Callable.callv()
.
Unfortunately, the workaround for now (I guess) is to have functions such as colorActor()
not use static typing for their (e.g. float) arguments, but leave arguments untyped. Then, in the function, use var r := red as float
(or similar) to convert the untyped argument (which may be strings, integers) to the desired "compatible" type (float, in this case).
I'll make a fix/workaround for this.
Fixed in main
and develop
.
When I run
It crashes
Aparently
result
is null.