I’m trying to write a ghuser object in python with GH_IO.Serialization. I’m finding that Python3, IronPython Legacy components write correctly with all parameter input DataMapping working but when I try to write Iron Python 2 user objects the DataMapping for Graft and Flatten aren’t being set. I’m wondering if i’m doing something wrong with the implementation?
I’m confused that it works for and Reverse, Simplify but just Graft and Flatten aren’t working.
# ... previous code to create other chunks
flatten = True
inputs_chunk = params.CreateChunk("InputParam", i)
if flatten:
# set flatten
inputs_chunk.SetInt32("Mapping", 1)
else:
# set graft
inputs_chunk.SetInt32("Mapping, 2)
# ... code to write binary UserObject