mischakolbe/node_calculator

Change .attrs to .attrs(index=None)

mischakolbe opened this issue · 1 comments

Using methods instead of properties would be a major improvement:

  • plusMinusNode.input3D[0].input3Dx would be possible (set/getitem could be used for attribute definition).
  • No more confusion what's an attribute and what is a method to get something from a Node.

Biggest hurdle:

some_node.attrs() = 7
does NOT work! (can't assign to function call)

Possible solution is the << (__lshift__(self, other)) operator.

I am literally re-creating PyMel, am I not...