Beispiel #1
0
        public override async void Execute()
        {
            RTAnimationCurve rtAnimationCurve = CurveService.GetAnimationCurve();

            rtAnimationCurve.ShowCurveEditor();
            rtAnimationCurve.NewWindow();

            AnimationCurve animationCurve = BrushService.GetBrushWidthCurve();

            rtAnimationCurve.Add(ref animationCurve);

            rtAnimationCurve.SetGradXRange(0, 1f);
            rtAnimationCurve.SetGradYRange(0, 0.5f);

            await TaskEx.WaitWhile(CurveService.IsEditorOpen);

            BrushService.SetBrushWidthCurve(animationCurve);
        }