Hi, I have a problem with making a fluid density import plugin.
I create a node and connect it and MFnFluid to load density and write to Fluid Node.
My problem is,
when I called setDensityMode() after calling setSize(), getResolution(), getDimension(),
setSize() only works for larger than 2 frame (2, 3, 4, ...).
At less than 1 frame,
setSize() did not work appropriately when I call setDensityMode().
For example, when I call setSize(111, 222, 112, 111, 222, 112),
the grid resolution and size is (111, 222, 112) at larger than 2 frame.
But at less than 1 frame, the resolution is (5, 10, 5), but the size is (111, 222, 112).
So I called getSize() and getDimension() after setDensityMode() to re-check the resolution,
It makes maya dead (at getDimension()). I mean, maya stops to work.
I don't know why the resolution is not properly changed at less than 1 frame.
I refered the source of Mantaflow's density loader (283-312).
https://bitbucket.org/mantaflow/mantaflow/src/2a4783d453a9/tools/maya/densityloader.cpp
Please help me!