just for documentation: @velcrome)) shows a way how to set an initial slicecount of zero in his ((contribution:teensy3.0octows2811-led-control contribution plugins, which does not clutter the evaluate method. by implementing the IPartImportsSatisfiedNotification interface and the OnImportsSatisfied method, you get a method that is run once at plugin initialisation.
public class ValuetestNode : IPluginEvaluate, IPartImportsSatisfiedNotification
{
#region fields & pins
[Input("Input", DefaultValue = 1.0)](Input("Input", DefaultValue = 1.0))
public ISpread<double> FInput;
[Output("Output")](Output("Output"))
public ISpread<double> FOutput;
[Import()](Import())
public ILogger FLogger;
#endregion fields & pins
public void OnImportsSatisfied()
{
//start with an empty stream output
FOutput.SliceCount = 0;
}
//called when data for any output pin is requested
public void Evaluate(int SpreadMax)
{
...
}
}