To execute code in multicam, you have to use the "call" or "pcall" commands, like
!mc:cmd('call set_prop(require("propcase").RESOLUTION, 3)')
I have no error message but it doesn't change the resolution, if I manualy enter the commands by chkptp cli it work.
You didn't see any error messages because you didn't wait for or check the status. If you used
!return mc:cmdwait('set_prop(require("propcase").RESOLUTION, 3)')
You would see something like
=true,{
[1]={
failed=false,
done=true,
status={
cmd="set_prop",
msg="unknown",
status=false,
},
},
}
You can also use the mc:print_cmd_status or print_cmd_status_short functions, like
!mc:print_cmd_status_short(mc:cmdwait('call set_prop(require("propcase").RESOLUTION, 3)'))
Edit:
The status values are an array, with one entry per camera. The outer "failed" and "done" field refer to communication with the camera. The inner status is the status of from the command on the camera.
Edit #2:
mc:cmd does not return status, because it returns as soon as the commands have been sent to all the cameras.