コード例 #1
0
        public void AddKeyframeFromPrompt(KeyFramePrompt KFInput)
        {
            if (CameraAnimation.ContainsKey(KFInput.time) || KFInput.time > DurationUpDn.Value - 1)
            {
                return;
            }

            if (CameraAnimation.Count == 3640)
            {
                MessageBox.Show("Key frame error", "You can't exceed the keyframe maximum of 3640", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            CameraAnimation.Add(KFInput.time, new LookAtFromPair(KFInput.AtPosition, KFInput.FromPosition));//Add the new KF
            RefreshTimeLine();
        }
コード例 #2
0
        private void AddLookBtn_Click(object sender, EventArgs e)
        {
            KeyFramePrompt KFInput = new KeyFramePrompt(this); //This prompt is another form. Check that for reference.

            KFInput.Show();                                    // Show Keyframe input and allow other windows to be used
        }