How do I return the connected port from the input port?



  • Hi ~
    I want to get which port the node's input port connects to. and I try to use gvport.getdestination () in the Python SDK, but I find that the port has to be the output port to return properly, and if the port is the input port, it returns an empty list.
    Does anyone know how to return the connected port from the input port?

    Cheers~



  • Hello,

    In C++ you would use GetIncomingSource but it's not implemented in python.

    So the only way is to check for each node in the same Xgroup if any of it's outgoing port is linked to your node.

    really not the best thing but that's the only workaround.

    Cheers,
    Manuel.



  • All right. Thanks for your reply.
    Cheers~



  • Hello,

    without feedback, i'll consider this thread as solved.

    Cheers,
    Manuel