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
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