MoI discussion forum
MoI discussion forum

Full Version: Script 3D view

Show messages: All  1  2-4

From: Michael Gibson
17 Dec 2023   [#2] In reply to [#1]
Hi Zooen, does this help? :
http://moi3d.com/forum/index.php?webtag=MOI&msg=7898.2

- Michael
From: Michael Gibson
17 Dec 2023   [#3] In reply to [#1]
That sets the 3D view direction using spherical type coordinates:



So up/down angle is like the θ labeled there and left/right angle is φ.

- Michael

Image Attachments:
3D_Spherical.png 


From: Zooen
18 Dec 2023   [#4] In reply to [#3]
Hi Mikael,
Yes, thank you, that's exactly it.

So I have my three scripts .js:
script:/* Vue de face dans la vue 3D */ moi.ui.mainWindow.viewpanel.getViewport('3D').setAngles( 90, 0, 0 );
script:/* Vue de Dessus dans la vue 3D */ moi.ui.mainWindow.viewpanel.getViewport('3D').setAngles( 0, 90, 90 );
script:/* Vue de Droite dans la vue 3D */ moi.ui.mainWindow.viewpanel.getViewport('3D').setAngles( 90, 90, 0 );

Best regards

Show messages: All  1  2-4