I am trying to export a bin particles sequence from a cached Grid Fluid Domain, but seems to not work.
Is there any way to do this via scripting?
How to export a particle bin secuence from a grid?
-
- Posts: 71
- Joined: Wed Jun 09, 2010 6:23 pm
Re: How to export a particle bin secuence from a grid?
Hi Jorge,
in order to export the BIN files the Grid Domain node must be Active. This script should do the trick:
Just call the function with something like:
exportDomainBinFiles( Grid_Fluid_Domain01, 0, 100 )

in order to export the BIN files the Grid Domain node must be Active. This script should do the trick:
Code: Select all
def exportDomainBinFiles( domain, minframe, maxframe ):
currentState = domain.getParameter( "Simulation" )
domain.setParameter( "Simulation", "Active" )
domain.activeExportResource( EXPORT_GRID_DOMAIN_BIN, True )
domain.activeExportResource( EXPORT_GRID_DOMAIN_GDC, True )
for i in range( minframe, maxframe+1 ):
domain.activeExportResource( EXPORT_GRID_DOMAIN_GDC, True )
scene.setCurrentFrame( i )
domain.activeExportResource( EXPORT_GRID_DOMAIN_GDC, False )
domain.export()
domain.setParameter( "Simulation", currentState )
exportDomainBinFiles( Grid_Fluid_Domain01, 0, 100 )

Alex Ribao
RealFlow Team
Next Limit Technologies
RealFlow Team
Next Limit Technologies
-
- Posts: 71
- Joined: Wed Jun 09, 2010 6:23 pm
Re: How to export a particle bin secuence from a grid?
Thank you Alex!!
running!!
running!!