RoboDK Forum
Display settings via API可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Display settings via API (/Thread-Display-settings-via-API)



Display settings via API-Adam Roberts-10-15-2021

Hi all, is there a way to set the station camera view via the API?

I.e. I'd like to open an rdk and set a specific zoom/rotation of the station. During the simulation I would like to change the view several times (without manual viewer input) to ensure the best of the robot and machined component.

Any help appreciated.

Kind regards,

Adam


RE: Display settings via API-Albert-10-16-2021

Yes, this is possible. You can get and set the camera pose using ViewPose and setViewPose respectively. This is the pose of the root of the station or position of the robot base with respect to the view pose.

You can also find the source code of the View Manager app here:
https://github.com/RoboDK/Plug-In-Interface/tree/master/PluginAppLoader/Apps

This View Manager app uses the ViewPose/setViewPose commands to move from one view to another one as shown in this video:
https://www.youtube.com/watch?v=krsVm02NQFY

Albert


RE: Display settings via API-Adam Roberts-10-16-2021

Fantastic, thanks Albert. I'll give this a go.