Hi, First of all greetings to everyone on this list. First post, zero python experience, so please be patient. :)
I'm writing a command to query and modify fluid voxel data and having some difficulties understanding a python data type. MFnFluid.density is supposed to return a pointer to a float array but the Python API returns a 'PySwigObject' that I don't know how to handle. How do I iterate through its values? Or am I doing something completely wrong? Cheers, Szabolcs -- fluidNode = OpenMayaFX.MFnFluid(node) numberOfVoxels = fluidNode.gridSize() densityValues = fluidNode.density() print densityValues print type(densityValues) -- --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
