On 18/11/2017 at 09:47, xxxxxxxx wrote:
I am developing a plugin that will initialize a certain XPresso network.
I have a function that's dedicated to building an XPresso node network, and I can successfully add all nodes I need, I can also add all the general ports with AddPort(), but it's not working as expected with customized TP channels when adding inport for let's say a PSetData node.
> port_channel1 = node_psetdata.AddPort(c4d.GV_PORT_OUTPUT, c4d.IN_PART_DATACHANNEL)
> print node_psetdata.AddPortIsOK(c4d.GV_PORT_OUTPUT, c4d.IN_PART_DATACHANNEL)
I see that IN_PART_DATACHANNEL is defined to equal to 10000 in op_particledata.h
If I manually add the inport in XPresso Editor, and then:
> ports = node_psetdata.GetInPorts()
> for port in ports:
> > print port.GetMainID()
It will print out 10000, (and 10001 ... if there are more channels), the correct type ID in the Console.
How can I add customized TP channel inports to nodes?