Client scripting

Hi,

I discovered the scripting functions of the Client but I have problems with some methods.

  1. “SetCameraViewItemCamera”, the method put a camera in a specific position of the view. It get in input the index of item view and a “camera”. But I don’t understand what is intented for “camera” (index, label, name, etc…). I tryed the name but it doesn’t work. Any suggestion?
  2. There are a lot of functions, but is it possible that missing a function to retrieve a specific camera? (i.e. getSelectedCameraID, getSelectedCameraName, etc…)

Thanks

Try the GUID of the camera.

I would recommend to develop a Smart Client plug-in instead. Try to explore the Smart Client View and Window Tool sample.

Hi Bo,

thanks for your answer.

I know that develop a SC plug-in is better but I would like to try the script functionalities.

I have looking for the GUID of the camera but I don’t find it. Can you tell me more about it?

Thanks

To get the GUID -

  • You can use the ConfigAccessViaSDK sample.
  • You can in the Management Client, pick the camera while you hold the Ctrl key down on your keyboard, or while the camera is picked pick the Info tab while you hold the Ctrl key down on your keyboard, if you do this the Properties - Info tab will include a text box with the GUID.