Type Error: 'int' object is not callable

Hey everyone,

I try to fill a variable with the index of an edge of a mesh.
This is the part where the error appears:

for ed in edges:            
      if something happens:
           Edgeindex = ed.index()

Type Error: ‘int’ object is not callable

I’m not yet that familiar with Python and the Blender API to really understand what this means. I tried a lot of things but it was always the error.

Thanks
Theo

Theo,

The error is informing you that ed.index is an int, and as an integer is not callable, or in other words isn’t a method / function, which are called by using () when calling. Eg sin(x)


Edgeindex = ed.index

Thank you batFINGER, it works now :slight_smile: