I am not sure if this is a bug or if I am doing something wrong.
So, I have a custom Record called SynthParameter<T,U>
T can be potentially either a string or an integer
U can be either a float, string or integer
In order to send this via OSC (SendMessage) I am using a custom Operation->ArgsToData as the OSC Help Examples.
The issue is that after a lot of experimentation I managed to make it work, but only for one patch
wherever else I am trying to introduce the exact same combination it is not working
It turns red, and I get this error:
However the path (SetNodeValue) looks good inside without raising any errors or issues:
is there any chance to be a false report, like cached data or so?
thanks in advance
gregsn
October 6, 2023, 5:32pm
2
Please attach the patch. Thank you!
Yes, sorry
Super Collider Server Lib - foundation for vvvv and SC integration
Check the example: Example Set Node Value Parameter
gregsn
October 6, 2023, 6:26pm
4
You define ArgsToData twice.
1 Like
I guess is that so, is there any example on how to constraint datatypes ?
gregsn
October 6, 2023, 8:53pm
6
Deleting one of those definitions should resolve the problem of the ambiguity.
I guess is that so, is there any example on how to constraint datatypes ?
Not sure if I understand what kind of constraints you need.
yes sorry, this is a completely different topic. I mean if it possible to restrict the types which a T can be. Like to accept either String, Int or Float avoiding the usage of IComparable Interface.
system
Closed
October 6, 2024, 2:53pm
8
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.