JacquesLucke/animation_nodes

Mesh object output error

eighty8serge opened this issue · 5 comments

Blender 4.1.0 + AN 3.11
System: Win10 64

1

If input mesh uses Load Custom Attribute checkbox, then error arise:

Traceback (most recent call last):
  File "E:\blender-4.1.0-beta+v41.2330e2564f69-windows.amd64-release\4.1\scripts\addons\animation_nodes\execution\main_execution_unit.py", line 38, in executeUnit
    exec(self.executeCodeObject, self.executionData, self.executionData)
  File "execution: 'Animation Nodes'", line 45, in <module>
  File "E:\blender-4.1.0-beta+v41.2330e2564f69-windows.amd64-release\4.1\scripts\addons\animation_nodes\nodes\mesh\mesh_object_output.py", line 175, in setMesh
    attributeOut.data.foreach_set("value", data.asMemoryView())
TypeError: couldn't access the py sequence

Does it work in Blender 4.2?

Unfortunately, no, tried blender-4.2.0-alpha+main.fae16e74547f-windows.amd64-release

Fixed in fe45013.

There are still some issues after update:

Info: Registering operator class: 'InvokeFunction_0', bl_idname 'an.invoke_function_0' has been registered before, unregistering previous
E:\blender-4.2.0-alpha+main.fae16e74547f-windows.amd64-release\4.2\scripts\addons\animation_nodes\nodes\mesh\mesh_object_output.py:180: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  attributeOut.data.foreach_set("value", data.asNumpyArray() != 0)
Error: Array length mismatch (expected 8, got -1)
TypeError: object of type 'bool' has no len()

Traceback (most recent call last):
  File "E:\blender-4.2.0-alpha+main.fae16e74547f-windows.amd64-release\4.2\scripts\addons\animation_nodes\execution\main_execution_unit.py", line 38, in executeUnit
    exec(self.executeCodeObject, self.executionData, self.executionData)
  File "execution: 'Animation Nodes'", line 45, in <module>
  File "E:\blender-4.2.0-alpha+main.fae16e74547f-windows.amd64-release\4.2\scripts\addons\animation_nodes\nodes\mesh\mesh_object_output.py", line 180, in setMesh
    attributeOut.data.foreach_set("value", data.asNumpyArray() != 0)
TypeError: couldn't access the py sequence
Error: Array length mismatch (expected 8, got -1)
TypeError: object of type 'bool' has no len()

Hopefully should be fixed in b892924.