hi,
I’m writing plugin with VS now.
define multiple classes as vvvv node with IPluginEvaluate in single dll, then sharing same custom data by Pin.
I could use connected and disconnected event for checking pin status and get node info each other.
but I cannot find good way to get an instance of c# class from different instance of other class.
for example, class A looks like
[PluginInfo ...
public class A : IPluginEvaluate
{
public int V;
[Input(Name = "Input")](Input(Name = "Input"))
Pin<bool> FInput;
public void Evaluate(int SpreadMax)
{
}
}
and class B
[PluginInfo ...
public class B : IPluginEvaluate, IPartImportsSatisfiedNotification
{
[Output(Name = "Output")](Output(Name = "Output"))
Pin<bool> FOutput;
public void OnImportsSatisfied()
{
FOutput.Connected += OnConnected;
}
public void Evaluate(int SpreadMax)
{
}
void OnConnected(object sender, PinConnectionEventArgs args)
{
// I wanna get value V of instance of class A here.
}
}
is this possible with vvvv plugin interfaces or c#?