Hi everyone, I'm trying to convert a .pmap file from photons into .pdc format (particles)
It seems straightforward enough, but I'm having problems reading the binary format of the .pmap file if you open the .pmap file in ultraEdit you can see that its structure is like this: http://www.altnresearch.com/random/photon-structure.gif I would assume that the basics would be something like below, but I don't completely understand how the command works import struct f = open("example.pmap", "rb") print struct.unpack("somethingAboutTheFormat",f.read()) f.close() thanks for your help Nick --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
