Frames vs Absolute Frames

hurricane1951 wrote on 11/26/2024, 8:54 AM

[Vegas Pro 22 on Windows 10 Pro]

I’ve configured my timeline to show all thumbnails, time and frames. However, that’s the only place the frame numbers appear. If I want to navigate to a specific frame number, I need to zoom in to the point where can view individual frames, but that is onerous and time consuming.

I can set the Time Format to Absolute Frames and can perform a Go To and enter the frame number. The problem is that the Absolute Frame number and the frame numbers that appear in the timeline are not the same.

I’m not sure of the difference between Frames and Absolute Frames, but there must be a way to jump to a specific Frame number as displayed in the timeline, or at least display the current frame number for the cursor location.

Any ideas?

Comments

zzzzzz9125 wrote on 11/26/2024, 9:52 AM

or at least display the current frame number for the cursor location

@hurricane1951 The current frame number is displayed at the bottom of the video preview window.

 

there must be a way to jump to a specific Frame number as displayed in the timeline

Just wrote a little script that you can try:

using System.Drawing;
using System.Windows.Forms;

using ScriptPortal.Vegas;  // "ScriptPortal.Vegas" for Magix Vegas Pro 14 or above, "Sony.Vegas" for Sony Vegas Pro 13 or below

namespace Test_Script
{
    public class Class
    {
        public Vegas myVegas;
        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            int frameNumber = GetFrameNumber();
            if (frameNumber < 0)
            {
                return;
            }
            myVegas.Transport.CursorPosition = Timecode.FromFrames(frameNumber);
        }

        public int GetFrameNumber()
        {
            Form form = new Form
            {
                ShowInTaskbar = false,
                AutoSize = true,
                BackColor = Color.FromArgb(45, 45, 45),
                ForeColor = Color.FromArgb(200, 200, 200),
                Font = new Font("Arial", 9),
                Text = "Frame",
                FormBorderStyle = FormBorderStyle.FixedToolWindow,
                StartPosition = FormStartPosition.CenterScreen,
                AutoSizeMode = AutoSizeMode.GrowAndShrink
            };

            Panel p = new Panel
            {
                AutoSize = true,
                AutoSizeMode = AutoSizeMode.GrowAndShrink
            };
            form.Controls.Add(p);

            TableLayoutPanel l = new TableLayoutPanel
            {
                AutoSize = true,
                AutoSizeMode = AutoSizeMode.GrowAndShrink,
                GrowStyle = TableLayoutPanelGrowStyle.AddRows,
                ColumnCount = 1
            };
            p.Controls.Add(l);

            TextBox tb = new TextBox
            {
                AutoSize = true,
                Dock = DockStyle.Fill,
                Margin = new Padding(12, 12, 12, 4)
            };
            l.Controls.Add(tb);

            Button ok = new Button
            {
                Font = new Font("Arial", 8),
                Text = "OK",
                Dock = DockStyle.Fill,
                Margin = new Padding(24, 4, 24, 6),
                DialogResult = DialogResult.OK
            };
            l.Controls.Add(ok);
            form.AcceptButton = ok;

            int value;
            if (form.ShowDialog(myVegas.MainWindow) != DialogResult.OK || !int.TryParse(tb.Text, out value))
            {
                value = -1;
            }
            return value;
        }
    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    //public void FromVegas(Vegas vegas, String scriptFile, XmlDocument scriptSettings, ScriptArgs args)
    {
        Test_Script.Class test = new Test_Script.Class();
        test.Main(vegas);
    }
}

 

Last changed by zzzzzz9125 on 11/26/2024, 9:58 AM, changed a total of 3 times.

Using VEGAS Pro 22 build 194 & VEGAS Pro 21 build 208.

Information about my PC:
Brand Name: HP VICTUS Laptop
System: Windows 11.0 (64-bit) 10.00.22631
CPU: 12th Gen Intel(R) Core(TM) i7-12700H
GPU: NVIDIA GeForce RTX 3050 Laptop GPU
GPU Driver: NVIDIA Studio Driver 560.70

john_dennis wrote on 11/26/2024, 10:02 AM

Have you tried direct entry?

Time Ruler

john_dennis wrote on 11/26/2024, 10:47 AM

@zzzzzz9125 Works for me...

hurricane1951 wrote on 11/26/2024, 11:20 AM

I don't see the arrow icon that you're using. How did you enable it on the toolbar?

hurricane1951 wrote on 11/26/2024, 11:22 AM

 

zzzzzz9125-- That is the Absolute Frame number and does match the frame numbers that appear in the timeline thumbnails.

hurricane1951 wrote on 11/26/2024, 11:34 AM

I found the GoTo icon (mine looks nothing like your arrow), but the only frames option is Absolute Frames, not the frame that appears in the timeline.

hurricane1951 wrote on 11/26/2024, 11:39 AM

You need to enable "Show source frame numbers on event thumbnails as: Frame Numbers" in Preferences | Video. Then the frame number shows at the bottom of each thumbnail. It's not the same as the "Absolute Frame", which I have no idea refers to. If you zoom the timeline until you can see the individual frames, that is the actual frame number. The Absolute Frame number seems to apply to something else.

john_dennis wrote on 11/26/2024, 12:18 PM

@hurricane1951 wrote on 11/26/2024, 9:20 AM

"I don't see the arrow icon that you're using. How did you enable it on the toolbar?"

 I created it in Photoshop to accompany @zzzzzz9125's script and placed it in C:\Users\John\Documents\Vegas Script Menu.

Then I Customized Toolbar...

hurricane1951 wrote on 11/26/2024, 8:04 PM

Now I can’t re-create the problem, which is good and bad. For the good, it seems to be working as expected. For the bad, I look like a fool after posting the question. Maybe the problem will recur and I’ll take some screen shots. Sorry.