Hi Doug,
> I've written a basic Fluid parser as part of a render engine export 
> script. The relevant file is viewable here:
> http://cvs.savannah.gnu.org/viewvc/ecume/exporters/luxmaya/luxPlugin/Lux/LuxExportModules/Volume.py?revision=1.1&view=markup
>  
> <http://cvs.savannah.gnu.org/viewvc/ecume/exporters/luxmaya/luxPlugin/Lux/LuxExportModules/Volume.py?revision=1.1&view=markup>

Thanks for the code example, getting density values is working fine now!
I saw in your code that you had problems with getting the grid resolution.
This is working for me, not really elegant though:
--
fluidNode = OpenMayaFX.MFnFluid(node)
xRes_p = OpenMaya.MScriptUtil().asUintPtr()
yRes_p = OpenMaya.MScriptUtil().asUintPtr()
zRes_p = OpenMaya.MScriptUtil().asUintPtr()
fluidNode.getResolution(xRes_p, yRes_p, zRes_p)
xRes = OpenMaya.MScriptUtil().getUint(xRes_p)
yRes = OpenMaya.MScriptUtil().getUint(yRes_p)
zRes = OpenMaya.MScriptUtil().getUint(zRes_p)
print ("%d %d %d" % (xRes, yRes, zRes))
--

Cheers,
Szabolcs

--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---

Reply via email to