Bifrost particle access from script


#1

Hi,

I work in Maya 2015 Student Version. I need a way to access the particle data contained in bifrost fluid simulations. Ideally, I want to access them from a python script so that I can write the particle positions to a file. I know how to do this with nParticle clouds using the nParticle command, for instance

pos = cmds.nParticle( ‘nParticleShape1’, attribute=‘position’, q=True, order=3 )

but is there a way to do the same for bifrost fluids?

The only possible option I have seen is to use the bif2prt exporter, and then maybe I can access the particle position from the PRT file. But I am unable to use big2prt (if I understand correctly, it requires extension1, which requires a paid subscription).

Thanks,

Olivier