Re: [Maya-Python] Re: Tagging MB files with metadata

2018-02-12 Thread Marcus Ottosson
Glad it works, however I can't take much credit for the parser; I believe most of the work is originally from cgkit, and the rest from the parent repository of my fork, https://github.com/agibli/sansapp On 12 February 2018 at 17:50, AK Eric wrote: > Thanks Alok & Marcus:

Re: [Maya-Python] Re: Tagging MB files with metadata

2018-02-12 Thread AK Eric
Thanks Alok & Marcus: I tried that code and it does indeed work. Nice job on the scenefile parser Marcus! -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from

Re: [Maya-Python] Re: Tagging MB files with metadata

2018-02-12 Thread Marcus Ottosson
By golly, that does actually work! from maya_scenefile_parser import MayaBinaryParser fname = "C:/Users/marcus/Desktop/temp.mb" class Parser(MayaBinaryParser): def on_file_info(self, key, value): print("%s = %s" % (key, value)) with open(fname, "rb") as f: parser = Parser(f)

Re: [Maya-Python] Re: Tagging MB files with metadata

2018-02-12 Thread Alok Gandhi
Why not use the fileInfo() to store the data? Can be read outside maya as well by parsing the ma/mb Sent from my iPhone > On 12-Feb-2018, at 00:10, Juan Cristóbal Quesada > wrote: > > following your attempts at using cPickle in mb files which seems interesting >