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


-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/302ded96-b4a6-49ee-a694-179aa5fd50c0%40googlegroups.com.

Reply via email to