Node Connectors Disappearing

I’ve created some dropdown nodes for my package and they are disconnecting when saving/reopening a graph. Here’s what gets recorded in the log.

Any advice? I inherited from DSDropDownBase like this example and made sure to include the JSON constructor, but I’m wondering if I still missed something to make sure that the ports get serialized.

By inheriting from DSDropDownBase, does that mean that I don’t have to register the ports separately?

please share your code

I figured it out. I was just missing the inPorts and outPorts parameters in the method signature for the base class. So I had:

public DropDownBase(string outputName, IEnumerable<PortModel> inPorts, IEnumerable<PortModel> outPorts) : base(outputName)

instead of:

public DropDownBase(string outputName, IEnumerable<PortModel> inPorts, IEnumerable<PortModel> outPorts) : base(outputName, inPorts, outPorts)

Turns out all I needed was a good night of sleep and fresh eyes :slight_smile:

2 Likes