I know this has been talked about before, but I’m throwing it in again. I would LOVE to see under Options → View → Rotate an option for rotating the view around CPlane axes for that odd, upside down, strangely aligned part.
Thanks,
Sam
I know this has been talked about before, but I’m throwing it in again. I would LOVE to see under Options → View → Rotate an option for rotating the view around CPlane axes for that odd, upside down, strangely aligned part.
Thanks,
Sam
@SamPage, the TestRotateViewCPlane
command enables or disables this type of view rotation. Give it a try and let me know what you think.
https://mcneel.myjetbrains.com/youtrack/issue/RH-30994
– Dale
Fantastic! It’s immediately going in Run these commands every time Rhino starts Thanks so much for this.
Sam
In my quick testing, it has been lovely, yes. The only thing I’m running into, which is probably my own fault, is scripts that I use to level / straighten the camera are still rotating it to world up:
-_RunScript ( Rhino.ViewCameraUp , Array(0,0,1) )
so I probably have to grab the current cplane first and XFormCplaneToWorld first.
But so far it is great. Thanks again,
Sam
After using this for a bit, I have noticed two issues, both should be able to be seen in this example (2.0 MB). Try panning using Ctrl + Alt + RMB (keeping camera point static, moving target point), the pan seems to be happening relative to world coordinates (in this file, right / left mouse movement yields an up / down pan).
The second is a script based question, and perhaps I should break that out into a second question, but as it might be related to testRotateViewCPlane, I’ll include it here. As I said earlier, I have a script to take any roll out of the camera:
Option Explicit
Sub CameraUp()
Dim arrPlane, arrCamUp
arrCamUp = array(0, 0, 1)
arrPlane = Rhino.ViewCPlane
arrCamUp = Rhino.XformCplaneToWorld(arrCamUp, arrPlane)
Rhino.ViewCameraUp , arrCamUp
End Sub
It the attached file, it results in the camera being upside down, in other files the camera ends up in unexpected orientations as well. What have I done wrong with this?
Thanks,
Sam
Hi Sam - try:
Rhino.ViewCameraUp , Rhino.ViewCPlane()(3)
does that do what you need? No idea if that is the goal - true up the view to the CPlane normal?
-Pascal
Thanks Pascal, that is it exactly!
Also just wanted to make sure you guys saw the issue with Ctrl + Alt + RMB pan acting oddly when using TestRotateViewCPlane in a non-world CPlane was seen as well.
Thanks again,
Sam
Hi Sam - Right! thanks - got that - bug item amended…
-Pascal
Hi, the command “TestRotateViewCPlane” doesn’t exist in the current version of rhino7. Is there an equivalent command?
Hi Ludovic -
The behavior of that test command was turned into a setting in the Rhino Options in Rhino 6. Rhino Options -> View -> Rotate -> Rotate around CPlane Z-axis
-wim
Great thanks!
Hi @wim, today I try to toggle this via code but I don’t find anything related to “rotate around cPlane ZAxis”. I see only the “rotatetoview” option:
https://developer.rhino3d.com/api/rhinocommon/rhino.applicationsettings.viewsettings/rotatetoview
I am missing something again?
Hi @Ludovic,
No, you are not missing something again.
I’ve logged a request to expose this.
https://mcneel.myjetbrains.com/youtrack/issue/RH-77515
– Dale