I’m trying to implement a color picker in a plugin but I can’t find how to output the selected color.
Error is :
Cannot implicitly convert System.Window.Media.Color to VVVV.Utils.VColor.RGBAColor
I found few lines in plugin references about color conversion and I thought it was straight forward :
“There is an implicit cast to the C# Color type and an explictit cast from C# color to RGBAColor.”
Here is the few line which ended with an error on the last line :
var uiElement = (ColorPicker)UIElementOut[i](i); System.Windows.Media.Color col = new System.Windows.Media.Color(); col = (System.Windows.Media.Color)uiElement.SelectedColor; ValueOut[i](i) = col;
ValueOut is RGBAColor output pin.