Forum Replies Created

  • Karl Goldshmidt

    March 17, 2009 at 11:13 pm in reply to: Vegas corruption…

    Interesting no-one else has noticed it. I can reproduce the bug easily:

    For example:
    1) Create a bin
    2) Dump some media into the bin

    3) delete media
    Seems like whenever someone deletes media that was placed into a mediabin, the bin ends up in a corrupted state ? Its happened using “Remove from Current Bin”, “Remove from Project”, and “Remove All Unused Media From Project”. Any script that then tries to access the bin will throw an exception.

    4) run script Bin-Corruption-0002

    Note that the script thinks there is still something inside the bin (Count = 1 ?), but accessing it will cause the exception.

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Windows.Forms;

    using Sony.Vegas;

    namespace Bin_Corruption_0002
    {
    public class EntryPoint
    {
    static internal Sony.Vegas.Vegas thisVegas = null;

    public void FromVegas(Vegas vegas)
    {
    using (UndoBlock undo = new UndoBlock(“Bin Corruption Test”))
    {
    thisVegas = vegas;

    MessageBox.Show(thisVegas.Project.MediaPool.RootMediaBin.Count.ToString(), “thisVegas.Project.MediaPool.RootMediaBin.Count”);
    // top level should all be bins…
    foreach (Sony.Vegas.MediaBin bin in thisVegas.Project.MediaPool.RootMediaBin)
    {
    MessageBox.Show(bin.Name, “bin.Name”);
    MessageBox.Show(bin.Count.ToString(), “bin.Count”);
    foreach (Sony.Vegas.IMediaBinNode loopBin in bin)
    {
    if (loopBin.NodeType == MediaBinNodeType.Bin)
    {
    MessageBox.Show(((Sony.Vegas.MediaBin)loopBin).Name, “loopBin.Name”);
    }
    else if (loopBin.NodeType == MediaBinNodeType.MediaRef)
    {
    MessageBox.Show(((Sony.Vegas.Media)loopBin).FilePath, “loopBin.FilePath”);
    }
    else
    {
    MessageBox.Show(“Unknown Media Type ?”, “ERROR”);
    }
    }
    }
    }
    }
    }
    }

    is there something I’m doing wrong, or has no-one really noticed this before ?

    TIA,
    krash
    Blur Studio

  • Karl Goldshmidt

    September 5, 2008 at 4:59 pm in reply to: Emitter

    Hey Brian, this is great ! Thank you so much.

    I do have thinking particles but I haven’t use much!
    I’m also new to expresso, but I’m trying to figure out your great solution, If you have any additional comments let me know thanks again!

  • Karl Goldshmidt

    June 3, 2008 at 7:46 pm in reply to: Extension vs. Script

    Thanks John,
    I’m sure that is mentioned somewhere in the SDK notes, but I must have missed it. I knew it was going to be something simple.

    Thanks again,
    krash

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy