/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { Boolean button = false; AnimationCamera animationCamera = AnimationCamera.Default; DA.GetData(0, ref button); DA.GetData(1, ref animationCamera); if (button == true) { animationCamera.SetAimationCamera(); } }
/// <summary> /// This is the method that actually does the work. /// </summary> /// <param name="DA">The DA object is used to retrieve from inputs and store in outputs.</param> protected override void SolveInstance(IGH_DataAccess DA) { Point3d location = Point3d.Unset; Point3d target = Point3d.Unset; double lensLength = double.NaN; DA.GetData(0, ref location); DA.GetData(1, ref target); DA.GetData(2, ref lensLength); AnimationCamera animationCamera = new AnimationCamera(location, target, lensLength); DA.SetData(0, animationCamera); }