Hello everyone!
I'm trying to create my first custom MpxNode for Maya, and the node keeps crashing on me.
The node takes two inputs and has an integer attribute.
The integer attribute selects which output should take the first input, all the other outputs will take the second input. Basically, it's a node that would toggle (for example visibility) on one out of many objects, while off on any other.
Now, I also wanted the node to be more flexible, so you could toggle other types of attributes, like, one object gets a certain vector or color or whatever.
So the two inputs and the output are generic attributes.
Using Api 2.0, cuz it feels right, if that could be anything.
My code as it lewks right now:
https://pastebin.ubuntu.com/p/xbCwP85dk6/With some debuggy prints, I've noticed it can parse the whole compute function without crashing, it's after that it just crashes, no errors.
/Peter