But I’ve only used that code in places that work asking for a float &, never a float*&.
You maybe on the right track with ctypes, but you need to create a float array pointer, not just a single float pointer. Also I would recommend initializing it with some values before you pass it to Maya.
You maybe on the right track with ctypes, but you need to create a float array pointer, not just a single float pointer. Also I would recommend initializing it with some values before you pass it to Maya.
Keir, thank you for an advice. I suppose, it must be exactly float *&, because this method returns pointers to internal storage color data of fluid container.
according information from help:
This method returns pointers to the storage for the color data in the fluid.
… If you modify the data via the pointers returned, you must call the “updateGrid” call or you will not see your changes.