This example script is for VEGAS Pro 16 and it should work, but it raises an exception:
using ScriptPortal.Vegas;
public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
vegas.Project.Video.PixelFormat = PixelFormat.Float32BitFullRange; // Catastrophic failure error
}
}
This line works, but it changes Pixel format to 32-bit full range instead of 32-bit video levels (this is how it works in all previous Vegas versions)
vegas.Project.Video.PixelFormat = PixelFormat.Float32Bit;
My suggestion for Vegas developers - change PixelFormat enum to this:
public enum PixelFormat
{
Int8Bit,
Float32Bit, // full range (how it works now in all Vegas versions)
Float32BitVideo // video levels (new option instead of broken Float32BitFullRange)
}
Thus, you will keep compatibility with previous versions.
Thanks.