Python API custom node - multiple inputs/outputs?

Python API custom node - multiple inputs/outputs?

Anonymous
Not applicable
892 Views
2 Replies
Message 1 of 3

Python API custom node - multiple inputs/outputs?

Anonymous
Not applicable
Hi,

I was wondering if it was possible to create multiple inputs and outputs in a custom node. I would like to create a custom node that takes multiple inputs and outputs multiple values. However, I am new at using the API and have only seen samples that show one input and one output.

aInput = OpenMaya.MObject()
aOutput = OpenMaya.MObject()

I'm wanting to output XYZ rotation and translation values and was wondering if MObject is incorrect.

Thanks!

Wes
0 Likes
893 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hi Wes,

I've been playing around with the API for a couple of days and I've the same questions as you 🙂 Even thou I can take multiple inputs but still cannot have outputs more than one.

You might already have it, but maybe this link will help you :
http://download.autodesk.com/us/maya/2011help/API/classes.html

Please update if you find the answer to your question, as it will benefit me and others.

Cheers,
Imran


Hi,

I was wondering if it was possible to create multiple inputs and outputs in a custom node. I would like to create a custom node that takes multiple inputs and outputs multiple values. However, I am new at using the API and have only seen samples that show one input and one output.

aInput = OpenMaya.MObject()
aOutput = OpenMaya.MObject()

I'm wanting to output XYZ rotation and translation values and was wondering if MObject is incorrect.

Thanks!

Wes
0 Likes
Message 3 of 3

Anonymous
Not applicable
When you say multiple inputs, do you mean hard-coded inputs? I've been wondering how to create a node that takes an arbitrary number of inputs. Any ideas?
0 Likes