just trying out a simple piece of script to check if a Filter Wheel is connected but hit a small bump in the road.
Code: Select all
import clr
clr.AddReference("SharpCap")
if SharpCap.Wheels.SelectedWheel.Connected != False:
SharpCap.ShowNotification('HAVE WHEEL')
else:
SharpCap.ShowNotification('NO WHEEL')
Also found that the same happens when checking for camera connected:
Code: Select all
if SharpCap.SelectedCamera != None:
SharpCap.ShowNotification('HAVE CAMERA')
else:
SharpCap.ShowNotification('NO CAMERA')
I realise that I can go down the 'Try/Except' route but before doing that, I thought that I may be missing a property somewhere.
regards..,
Kirk