private void RunScript(bool run, ref object A)
{
if(!run) return;
var parent = new MathComponents.FunctionComponents.Component_Series();
parent.CreateAttributes();
parent.Attributes.Pivot = new System.Drawing.PointF(100, 100);
GrasshopperDocument.AddObject(parent, false);
var created = new VectorComponents.PointComponents.Component_ConstructPoint();
created.CreateAttributes();
created.Attributes.Pivot = new System.Drawing.PointF(200, 100);
GrasshopperDocument.AddObject(created, false);
created.Params.Input[0].AddSource(parent.Params.Output[0]);
}
Gaston.gh (2.1 KB)