Math Node third Input port [SOLVED]

On 20/08/2015 at 02:03, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   R16 
Platform:      Mac OSX  ; 
Language(s) :     C++  ;

---------
Hi,

How does one create a third Input port for the Math Node?
I have no problem getting the first and second Input port, since they are allready there.
But creating a new one gives me problems.

Does somebody know how to do this?

Thanks in advance for your help and time!
Greetings,

Casimir Smets

On 20/08/2015 at 02:48, xxxxxxxx wrote:

Never mind, found the answer:

GvPort* mathThirdInPort = mathNode->AddPort(GV_PORT_INPUT, GV_MATH_INPUT);
if (!mathThirdInPort) return false;