pyaaf2
                                
                                 pyaaf2 copied to clipboard
                                
                                    pyaaf2 copied to clipboard
                            
                            
                            
                        Saving as xml
In the original pyaaf, there was a saving option to go to xml (as shown in the example below from (https://github.com/markreidvfx/pyaaf/issues/6). Is this no longer available in this version?
aafFile = aaf.open(filename, 'r') aafFile.save('/tmp/del.xml') aafFile.close()
hi @rjensen6107 xml support hasn't been implemented yet.
Hi Mark- Is there any timeline for the xml implementation? Thanks!
I currently don't have any timeline. I'd love to have the feature but I haven't personally needed it so thats why it's not implemented yet.
@markreidvfx , Is there any other to read aaf file in text editor? I can read it in power shell but I'd like to export the result to file that other users can read Please let me know if you have any solution for this
Thanks
AAFObjects have dump() method you can use
Thanks for your response. But dump() gives the result in console window and not sure how to save as xml file
You can redirect stdout to a file with a pipe. python dump.py file.aaf > output.txt
There is also some other ways people do it, like this
https://stackoverflow.com/questions/4675728/redirect-stdout-to-a-file-in-python
It won't be xml, dump is just a debugging helper.
Great Thanks, @markreidvfx