Export particles sim to PFX

   1227   1   1
User Avatar
Member
271 posts
Joined: March 2012
Offline
Hi all,

I've been trying and failing for two days to get the results of a particle sim into another package. The particle cache format is documented here:

http://forums.newtek.com/showthread.php?129146-fcache-specification&p=1255059&viewfull=1#post1255059 [forums.newtek.com]

The format is roughly:

Header Data
Particle Header Data
	Particle Position at Frame 1
	Particle Position at Frame 2
	...
	Particle Position at Frame n
As you can see the format requires data for each particle to be in sequence, which is an issue, as at each frame I can iterate over the points, but I cannot possibly know how many frames each particle lives for at some random frame.

Does anyone have any ideas on how to do this? I've tried using a shuffle CHOP to rearrange the data, but it's just too slow to be useful.
Edited by Anti-Distinctlyminty - Nov. 27, 2016 16:42:47
User Avatar
Member
271 posts
Joined: March 2012
Offline
It appears that I just need to gather the motion data for each point one after the other.
So with that in mind…how do I access the position data for an arbitrary point at an arbitrary time?
  • Quick Links