ID 390357 - iterVertexNormals() calls the wrong variables.

Follow

Problem summary
iterVertexNormals() calls the wrong variables.


Customer reported version
modo.13.0v1


Customer reported platform
10.14


Steps to reproduce


1) Launch Modo, and create a Cube Primitive.

2) Select the Cube from the Items list and then select Layout>Palettes>Scripting.

3) Type this sample scripting into the window at the bottom and run it.

#python
import modo

scene = modo.Scene()
item_filter = ['mesh']
meshes = [node for node in scene.items() if node.type in item_filter]

for mesh in meshes:
for polygon in mesh.geometry.polygons:
for normal in polygon.iterVertexNormals():
print normal


4) This will result in the following error:



Expected behaviour
For the script to run.


Actual behaviour
It results in an error.


Workaround

The only way to fix this is to edit the code that ships with Modo.


Reproduced by support

This bug has been reproduced in:
Modo 13.0v1 - Windows 10 - Centos 7 - MacOS 10.13

Modo 12.2v2 - Windows 10

Modo 12.1v2 - Windows 10

Modo 12.0v1 - Windows 10

Modo 11.2v3 - Windows 10

Modo 11.1v1 - Windows 10

Modo 11.0v3 - Windows 10

Modo 10.2v4 - Windows 10 - Centos 7 - MacOS 10.13


Earliest version tested
Modo 10.2v4 - This issue appears to be in all versions of the product


    We're sorry to hear that

    Please tell us why