If .ma is an option, then it supports comment blocks.

// Comment here
...
addAttr ...
connectAttr..

A perhaps more common approach might be to store metadata relative an
absolute path in a database.

{
  "c:\path\to\some\file.mb": {
    "any": "data",
    "here": True
  }}

Then you can query files and metadata somewhat similarly.

fname = r"c:\path\to\some\file.mb"
with open(fname) as f:
  f.read()
with metadata(fname) as f:
  f.read()

Where metadata() is a function of your own design, for example..

import contextlibimport mongo
@contextlib.contextmanagerdef metadata(fname):
  return mongo....find_one({"fname": fname})

Leaving out the details of how to communicate with the database for brevity.
​
​

-- 
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 it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAhQ7HYaEvwqoh1KaA8sS-VXuXVERReUB6NU%2B-jZKkC5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to