State:New|TargetRelease:No Target|icon_bug|icon_modo|database:public|Resolution:Fixed|BugID:516363|
Problem summary
Calling View3D.Axis when view is set to a Camera returns 7, the #define "enum" only goes up to 6 with perspective.
Customer reported version
modo.n/a
Customer reported platform
windows10
Steps to reproduce
1) Open Modo
2) Change the view to Camera.
3) Select Layout > Palettes > Scripting.
4) Enter following into the Script Editor:
view_service = lx.service.View3Dport() view = lx.object.View3D(view_service.View(view_service.Current())) _, vp_axis, _ = view.Axis() print(vp_axis) /* * - int Axis (self, cam, axis) * Returns the view axis. Note that perspective views return -1, and that UV * views always return a Z axis. For convenience, the view's camera mode is also * provided. If it or the 'axis' vector pointers are NULL they will not be filled. */ #define LXi_VP_AXIS_X 0 #define LXi_VP_AXIS_Y 1 #define LXi_VP_AXIS_Z 2 #define LXi_VP_AXIS_PERSP -1 #define LXi_VP_AXIS_UV LXi_VP_AXIS_Z #define LXi_VP_CAM_LEFT 0 #define LXi_VP_CAM_RIGHT 1 #define LXi_VP_CAM_TOP 2 #define LXi_VP_CAM_BOTTOM 3 #define LXi_VP_CAM_FRONT 4 #define LXi_VP_CAM_BACK 5 #define LXi_VP_CAM_PERSP 6 We're sorry to hear that
Please tell us why