PythonObject
Description
Stores an object of dynamic type for the purpose of passing an argument to and from a Python scripts.
This type can store an object of one of the following types:
- Bool =
bool - Long (also handling Integer) =
int - Double (also handling Real) =
float - String =
str - BoolArray =
list[bool] - LongArray (IntegerArray) =
list[int] - DoubleArray (RealArray) =
list[float] - StringArray =
list[str]
The type CANNOT store arrays with items of mixed types (only uniform arrays are supported).
The values of this type will be automatically converted on connections to ports of the above types. Care must be taken in the Python scripts to return values of expected types or a runtime error will be raised on the connection conversion.
Additionally the type can store the None Python value. To handle None values this type must be explicitly converted to/from a conditional type with PythonObjectToConditional and ConditionalToPythonObject filters.
