I'm using the 'Select Model Elements' for the user to select some objects which I then process using a Python node.
The problem I have is that the node does not produce consistent results.
It outputs a list of elements when multiple elements are selected, but if only one object is selected then it outputs a single object, no list.
I'm not been able to detect the difference between the two outputs and so my Python code fails if either single or multiple objects are selected depending on which type my code handles.
What I'd like to do is analyse the output of the node and then deal with it accordingly - and I would use the Type() function to do this.
But I've not been able to get this function to work in a Python node - it returns an error (I get IronPython.Runtime.Types.PythonType).