On Mon, Sep 29, 2008 at 5:25 AM, Horvátth Szabolcs <[EMAIL PROTECTED]> wrote: > > I see. So this PySwigObject is the object that holds the data internally > and getFloatArrayItem is simply a "convenient" wrapper function to query > the items?
That's right. > I can't find any documentation about this class in the API docs. Where > can I find more information about MScriptUtil? Check your Maya 2008 API docs. It should be in there. If not, you might need to download Maya 2008 Service Pack 1. > Its working fine now, thanks. And how can I modify the content of this > array if I'd like to modify the density values? maya.OpenMaya.MScriptUtil.setFloatArray(densityValues, i, newValue) where 'newValue' is a double for some reason. > And by the way, after getting density working I advanced to level 2 with > MFnFluid.getVelocity. At the moment there is no way that I know of to call MFnFluid.getVelocity from Python. The problem is that it expects references to pointers which not even MScriptUtil currently supports. -- -deane --~--~---------~--~----~------------~-------~--~----~ Yours, Maya-Python Club Team. -~----------~----~----~----~------~----~------~--~---
