Find and locate all transitions in a project

PIT wrote on 7/31/2024, 9:38 AM

Hi, I want to find and locate all transitions at the timeline.

If I open an old project with a new version of Vegas PRO it sometimes happens that there is an old transition which is no longer activated. At this point I want to replace this transition with a new one. So I ask for help how to locate a special transition.

I use Vegas PRO 21.0 Build 315.

I can use Happy Otter Script 1.0.3.32 or Vegasaur Toolkit 3.95, but I do not find a function to find a special transition.

Can someone help me?

Thank you!

Peter

 

Comments

mark-y wrote on 7/31/2024, 9:58 AM

Here is the manual way I use:

  • Select the track you wish to examine and place the cursor at the beginning.
  • Hold down Ctrl+ALT and step through the timeline using the Right Arrow key.
  • The cursor stops at every event change, including the head and tail of each transition or event overlap.
PIT wrote on 8/1/2024, 2:31 AM

Hi, mark-y, thank you for you quick response.

My project contains more than 2000 media. So it would take a very long time to step through the project this way.

I'm searching for a more practical way. Maybe a script or something else.

I hoped that it could be done with HOS or Vegasaur.

gorGaram wrote on 8/1/2024, 4:40 AM

Hi, I want to find and locate all transitions at the timeline.

If I open an old project with a new version of Vegas PRO it sometimes happens that there is an old transition which is no longer activated. At this point I want to replace this transition with a new one. So I ask for help how to locate a special transition.

I

Alternatively, you can export to XML and search by tags there. Not just transitions.

CPU: AMD Ryzen 7 3700X

VideoCard: NVIDIA GeForce RTX 4060 Ti 16Gb

Memory: 128Gb

OS: Windows 10 (1809)

Drive C: (SSD-500Gb) - ONLY system

Drive D: (HDD 4Tb) - ProrgamFiles and Temp
Drive E: (HDD 4Tb) - Work drive

Vegas Pro: 20.411, 21.315, 22.122

mark-y wrote on 8/1/2024, 8:00 AM

@PIT I understand completely. Management of huge numbers of events is only something that facilitation by 3rd party addons could probably handle.

Wayne's main thread for HOS development questions and suggestions is here:

https://www.vegascreativesoftware.info/us/forum/happy-otter-scripts-for-vegas-pro--113922/

PIT wrote on 8/1/2024, 8:02 AM

Hi, gorGaram, thank you very much for your idea.

I have just tested it, but the name of the transition (in my case "3D Wiggle") is not included.

I does not help finding the searched transition. Sorry.

Other ideas?

gorGaram wrote on 8/1/2024, 10:03 AM

Hi, gorGaram, thank you very much for your idea.

I have just tested it, but the name of the transition (in my case "3D Wiggle") is not included.

I does not help finding the searched transition. Sorry.

Other ideas?

Can you send me an XML file?

CPU: AMD Ryzen 7 3700X

VideoCard: NVIDIA GeForce RTX 4060 Ti 16Gb

Memory: 128Gb

OS: Windows 10 (1809)

Drive C: (SSD-500Gb) - ONLY system

Drive D: (HDD 4Tb) - ProrgamFiles and Temp
Drive E: (HDD 4Tb) - Work drive

Vegas Pro: 20.411, 21.315, 22.122

jetdv wrote on 8/1/2024, 10:12 AM

A script can certainly "find" a transition. However, there's now real way to indicate "everywhere this transition exists." But there are some options when using a script:

  1. It could locate the "first" instance of this transition allowing you to manually change the transition. Then you'd need to run it again until it no longer found another instance.
  2. It could automatically replace all found instances of this one transition with a different transition. You might need it to also pick a specific preset on the new transition.
  3. It could simply remove all instances of this one transition.
  4. It could produce a text list showing everywhere this transition is located.

 

PIT wrote on 8/1/2024, 2:02 PM

Sorry gorGaram, I was not able to send an XML file.

Only Image-, Audio- or Videofiles are allowed to upload.

I have tried to copy the XML file content inside the comment, but I does not work.

I just generated a new project and exported an XML file.

But in the XML file there is no "3D Wiggle" (see picture)

jetdv wrote on 8/1/2024, 6:15 PM

@PIT Ok, here's a script that will look for all TRANSITIONS in a project and list them, with timecodes, in a dialog box.

Regions could easily be added as well as we have the timecodes plus the regions could be named the name of the transition. I may add that for a tutorial...

using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            string s = "";
            foreach (Track myTrack in myVegas.Project.Tracks)
            {
                if (myTrack.IsVideo())
                {
                    foreach (VideoEvent vEvnt in myTrack.Events)
                    {
                        string inRes = CheckForTransition(true, vEvnt.FadeIn, vEvnt.Start);
                        if (inRes != "")
                        {
                            s = s + inRes + Environment.NewLine;
                        }
                        string outRes = CheckForTransition(false, vEvnt.FadeOut, vEvnt.End);
                        if (outRes != "")
                        {
                            s = s + outRes + Environment.NewLine;
                        }
                    }
                }
            }
            MessageBox.Show(s);
        }

        public string CheckForTransition(bool isIn, Fade fade, Timecode fadeEdge)
        {
            object trans = fade.Transition;

            if (trans == null)
            {
                return "";
            }
            else
            {
                Effect transEff = (Effect)trans;
                string retString = "";

                if (isIn)
                {
                    Timecode endcode = fadeEdge + fade.Length;
                    retString = fadeEdge.ToString() + "-" + endcode.ToString();
                }
                else
                {
                    Timecode endcode = fadeEdge - fade.Length;
                    retString = endcode.ToString() + "-" + fadeEdge.ToString();

                }
                return retString + "  -  " + transEff.Description;
            }

        }
    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Test_Script.Class1 test = new Test_Script.Class1();
        test.Main(vegas);
    }
}

 

PIT wrote on 8/2/2024, 12:54 AM

@jetdv Thank you very much! You made my day!

Reyfox wrote on 8/2/2024, 2:27 AM

@jetdv Thank you very much! You made my day!

He has that habit with scripts!

Newbie😁

Vegas Pro 22 (VP18-21 also installed)

Win 11 Pro always updated

AMD Ryzen 9 5950X 16 cores / 32 threads

32GB DDR4 3200

Sapphire RX6700XT 12GB Driver: 25.3.1

Gigabyte X570 Elite Motherboard

Panasonic G9, G7, FZ300