public static TimelineWindowTimeControl CreateTimeController(TimelineWindow.TimelineState state, TimelineWindowTimeControl.ClipData clipData)
        {
            AnimationWindow           window = EditorWindow.GetWindow <AnimationWindow>();
            TimelineWindowTimeControl timelineWindowTimeControl = ScriptableObject.CreateInstance <TimelineWindowTimeControl>();

            timelineWindowTimeControl.Init(state.GetWindow(), window.get_state(), clipData);
            return(timelineWindowTimeControl);
        }
        public static void SetAnimationWindowCurrentFrame(int frame)
        {
            AnimationWindow window = EditorWindow.GetWindow <AnimationWindow>();

            if (window)
            {
                window.get_state().set_currentFrame(frame);
            }
        }
        public static int GetAnimationWindowCurrentFrame()
        {
            AnimationWindow window = EditorWindow.GetWindow <AnimationWindow>();
            int             result;

            if (window)
            {
                result = window.get_state().get_currentFrame();
            }
            else
            {
                result = -1;
            }
            return(result);
        }