Viewpoint Forums
Viewpoint Forums
JavaScript
Orbit and Zoom to an object|
Go
![]() |
New
![]() |
Find
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Junior Member |
Hi,
I explain you my problem. My image Viewpoint is composed of few objects (MTSInstance). For example, I would like to click on object and so, the orbit reference change on this object and this object will set to fullscreen into Viewpoint area. I know how set the orbit reference to an object. function LeftClic(piece) { var wm = vmp.GetProperty ('MTSInstance.' + piece, 'WorldMatrix', 'mts_matrix'); vmp.SetProperty ('MTSInstance.InstTmp', 'Matrix', wm, 'mts_matrix'); var loc_ = vmp.GetProperty ('MTSInstance.InstTmp', 'loc_', 'mts_pnt3d'); vmp.SetProperty("MTSCamera", "pivt", loc_,"mts_pnt3d"); } But I cannot zoom automatically on this object. I know OrbitDist parameter (orbd) but how can calculate the value ? Thanks in advance Romain. |
||
|
| Powered by Eve Community |
| Please Wait. Your request is being processed... |
|
Viewpoint Forums
Viewpoint Forums
JavaScript
Orbit and Zoom to an object
