
feganmeister
United Kingdom
Asked
— Edited

Hello! I'm having a tinker with EZ Script and have a question about the GetControlValue function. Does anyone know if there is a GetControlValue for CameraStart? Ideally, I want to return a simple Boolean true or false if the camera status is started *confused* I was thinking something like this:Code:
$CameraStatus = GetControlValue("Camera", "CameraStart")
The camera control provides a whole range of variables such as $CameraIsTracking (amongst many others). ControlCommand can start and stop the camera also.
What do you want to do with the true/false response?
Yeah, looking in the Script Help, the example is this:
Code:
I'm actually connecting to the Script Interface via the SDK and using the "status" to enable or disable a control accordingly. Sadly, none of the built-in variables in EZB (that I can see) store the status of whether the camera device is started or not. Incidentally, you can check if it's paused using this:
Code:
Cheers!
The documentation doesn't state that start or stop is a control value which you can get so I assume that means it isn't available.
I may be missing something but what is the benefit of having the camera stopped? Would having the camera control start automatically via a ControlCommand be a useable solution?
Code:
I'm not looking to have the camera permanently started (ideally) and wanted the status to be able to conditionally control things. As a pseudo example:
If CameraStatus equals Started then EnableColourTracking
Else Say "Camera isn't started yet, would you like to start?"
I suppose I need to ask @DJ-Sures politely and request a new feature
Code:
That or set the $CameraStatus variable when the camera control is started (such as the ControlCommand Rich mentioned in post #4) and remove (or set to false) when it's stopped? Does that make sense or am I being bonkers? *blush*
Thanks