There is a slight difference between both objects a circle and a box. You can compare both in the tree. The object circle is a billboard 2D object. You need to disable it by flag operation
Please refer to https://answers.flexsim.com/answers/28299/view.html
item.attrs.find("/visual").subnodes.add().name="shape";
item.attrs.find("/visual").subnodes.add().name="shapeindex";
rebindobjectattributes(item.attrs.find("/visual"));
imageindexobject(item).value = 0;
shapeindex(item).value = 0;
set(drawflags(item),get(drawflags(item)) &~ DRAW_FLAG_BILLBOARD_MASK);
I am not sure, if every code line is necessary. I put this in the onExit trigger of FluidToItem object as first behind header declaration.
EDIT: FluidToItem_shaped_Object.fsm
You still need a change of shape and resize involved item, too.