ID 518034 - lx.object.View3D returns inconsistent values

Follow

Problem summary
lx.object.View3D returns inconsistent values.
 
Customer reported version
modo.15.2v2
 
Customer reported platform
windows10
 
Steps to reproduce
 
1) Open Modo and create a cube.

2) Set the X,Y and Z Positions to 1, 2 and 3 respectively.

3) Press the "A" key inside of the 3D viewport to focus on the cube.
 
4) Select Layout > Palettes > Scripting to open the Script Editor.
 
5) Run the following script inside of the Script Editor:

view_service = lx.service.View3Dport() view = lx.object.View3D(view_service.View(view_service.Current())) distance, position, direction = view.EyeVector() print(distance)
 
6) Now rotate the camera around the cube and re-run the script. Notice that the distance value changes.
 
Expected behaviour
You would expect the distance to remain the same as it's only rotating around the object.
 
Actual behaviour
The distance value changes when the viewport is rotated around the cube.
 
Workaround
Unknown.
 
Reproduced by support
 
This bug has been reproduced in:
16.0v3 - Windows 10, macOS 11.6
14.0v1 - Windows 10, macOS 11.6
 
Earliest version tested
14.0v1 - This issue appears to be in all tested versions of the product.
 
 

    We're sorry to hear that

    Please tell us why