admin wrote: ↑
Sat Aug 25, 2018 7:26 am
this is a change in 3.2 - previously CaptureLimitValue was used for both number of frames and times. Now there are two separate values to set
CaptureLimitCount (for number of frames, an integer)
CaptureLimitTime (for setting the time length of a capture - this is a TimeSpan)
Code: Select all
from System import TimeSpan
SharpCap.SelectedCamera.CaptureConfig.CaptureLimitTime = TimeSpan.FromSeconds(100)
hope this helps,
Thanks Robin, I assumed it was maybe something along those lines, I must have missed it in the documentation.
So just to get this straight with the new TimeSpan attribute, is the capture time in seconds the value held in the parenthesis i.e. 100 in your example?
I am guessing too that all pre 3.2 scripts using CaptureLimitValue will need to be changed & from that point on will only function on 3.2 and above?
Is there somewhere an exhaustive list of all the numerous SharpCap attributes etc.... with explanations?
I see a limited few on the Scripting Help Page but I have mainly been finding them by using the scripting console by using the suggestion list.
This is fine and some have self explanatory names but it’d still be nice to see a glossary.