I have an issue with Custom Nodes where I have a Python node doing exactly what I want, how I want it, without any errors from the node itself. My issue: IN and IN can both be either a single string or a list of strings, and I want to create a custom node. Once in Custom Node form, if both are a list, as is possible, it outputs a list the size of IN . By changing lacing to “longest,” I was able to get the output I expected, but as soon as I added an additional item to the list for IN, it grew the size of the output list to IN, instead of keeping the size of IN. Currently, I have the input nodes for IN and IN as “name : string,” expecting that it would automatically recognize if it were a list or not. I do not want to constrain either input to exclusively acting as a list by using “string[.]…[.]” (ignore the periods inside the brackets, formatting of site turns plain brackets into a check box), but am unsure how to get the expected behavior.
The Python node inside the Custom Node is properly handling if either input is a list or not. I would prefer to constrain the custom node inputs to strings in some way due to the inability of Dynamo to raise an internal node’s error to the Custom Node in the actual script, but am open to using alternate means of defining the inputs if need be.