pyaaf2 icon indicating copy to clipboard operation
pyaaf2 copied to clipboard

Saving as xml

Open rjensen6107 opened this issue 7 years ago • 8 comments

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()

rjensen6107 avatar Feb 20 '18 05:02 rjensen6107

hi @rjensen6107 xml support hasn't been implemented yet.

markreidvfx avatar Feb 21 '18 03:02 markreidvfx

Hi Mark- Is there any timeline for the xml implementation? Thanks!

steccino avatar Nov 15 '18 23:11 steccino

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 avatar Nov 16 '18 22:11 markreidvfx

@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

dream-k avatar Jun 06 '22 21:06 dream-k

AAFObjects have dump() method you can use

markreidvfx avatar Jun 11 '22 13:06 markreidvfx

Thanks for your response. But dump() gives the result in console window and not sure how to save as xml file

dream-k avatar Jun 13 '22 00:06 dream-k

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.

markreidvfx avatar Jun 13 '22 07:06 markreidvfx

Great Thanks, @markreidvfx

dream-k avatar Jun 13 '22 15:06 dream-k