meaning of NatNetClient send_command codes

NatNet, VRPN, TrackD, and Plugins
Post Reply
baptistec
Posts: 3
Joined: Sat Mar 11, 2023 6:38 am

meaning of NatNetClient send_command codes

Post by baptistec »

Hello.
I am trying to use NatNetClient in python to check that all properties in Motive are set as I expect, but I receive nonsensical codes.
If I use for instance:
res = streaming_client.send_command("SetProperty,eSync 2,SyncOutput1Enabled,false")
Then I can successfully set on or off output1 of the eSync. The function send_command also returns the code 49, which might mean 1 in ascii. But if I simply try to read the property:
res = streaming_client.send_command("GetProperty,eSync 2,SyncOutput1Enabled")
Then I receive the code 43, which means nothing.
The same is true for other properties. For instance with:
res = streaming_client.send_command("SetProperty,eSync 2,SyncOutput1PulseDuration,14")
I can set Output1 Type to Gated internal clock, as expected from the constraints listed in the profile xml file. But the code returned is 52. If I set it to 12 it also returns 52, but if I set it to 2, then it returns 51.
So I cannot find any logic in these codes. Has anybody successfully managed to get property values through NatNetClient?
Thanks.
Post Reply