What CODE will perform the same operation as pressing the CAPTURE BUTTON?
All --
What CODE will perform the same operation as pressing the CAPTURE BUTTON?
I have tried to RECORD this operation but PREMIER 9.1 and 9.2 generate ERRORS.
I would do this with PREVIEW ON and PREVIEW OFF but there are some AUTOMATIC NAMING FEATURES in PREMIER that a USER wants to use that are triggered by the CAPTURE BUTTON.
Thanks.
-- Matt
What CODE will perform the same operation as pressing the CAPTURE BUTTON?
I have tried to RECORD this operation but PREMIER 9.1 and 9.2 generate ERRORS.
I would do this with PREVIEW ON and PREVIEW OFF but there are some AUTOMATIC NAMING FEATURES in PREMIER that a USER wants to use that are triggered by the CAPTURE BUTTON.
Thanks.
-- Matt
0
Best Answer
-
Hi Matt,
Below is a code sample to capture a single image.
Also, while there was a capture macro recording bug in Premier 9.1, it was corrected and it is working for me using Premier 9.2.Public Function NewMacro3() As SimpleScript NewMacro3 = New SimpleScript Dim image1, doc1 With Capture.CaptureCommands.Acquire(NewMacro3) .Exposure = 100 .Gain = 2 .Run(Nothing, image1) End With With Application.DocumentCommands.Activate(NewMacro3) .Run(image1, doc1) End With End Function
0
Answers
Your CODE EXAMPLE worked (both in 9.1 and 9.2).
Thank you very much.
Before asking the question, I tried the RECORD in 9.1 and 9.2 and the error happened in both (9.1 first then 9.2).
I have now rebooted my computer and attempted to do a RECORD of a CAPTURE in a NEW PROJECT in 9.2 (without attempting a RECORD in a 9.1 PROJECT) and the RECORD worked and generated CODE similar to yours.
It's a mystery.
Thanks again.
-- Matt