Importing Image Sequences

ChrisAtSilentOrb wrote on 1/26/2008, 9:19 PM
I am trying to import image sequences through a script. I've almost gotten it to work by using:

string path = "META:\\Image Sequence\\{" + filename+ "} (0)[" + NumberOfFrames.ToString() + "][3]";
// path generally equals something like: "META:\\Image Sequence\\{E:\\Render_Pictures\\Test\\Test.168.png} (0)[63][3]"
vegas.Project.MediaPool.AddMedia(path);

However, the resulting Media object's Length.Nanos property is set to something like frame*100000, which is way to big and I haven't had any success in altering it's Length property

The imported media appears in the timeline way too long until I view that media object's properties in Vegas, at which point the media object suddenly fixes itself and it's Length property becomes the right value.

Aside for the middle number, which appears to be the amount of images in the sequence, I do not know what the three numbers at the end of the "META" string stand for. (I got this string format from examining the Key property of normally imported image sequences.) Exactly what are these numbers for? Could setting one of them to the right value solve my Length problem?

Thank you,
Chris Johnson

Comments

ForumAdmin wrote on 1/28/2008, 1:44 PM
Unfortunately you can not properly create an image sequence through the scripting API. I have added this issue to our bug database... look for a fix in a future release.

As you've described, it only partially works to provide an image sequence meta-path to the MediaPool::AddMedia method but the default value of the sequence's frame rate is 1 Fps and you can't modify the frame rate through the scripting API.

No part of the meta-path for image sequences is used to signify the frame rate.

Blur Studio wrote on 3/17/2009, 5:02 PM
Hello Sony ;)

Any ETA on when we might get scripting access to this ? (add me to the list of people who would want it :D) Working with Image Sequences is a large part of our pipeline here, and automating some of that would be a huge help to the studio.

TIA,
krash
Blur Studio, Inc.