Skip to content

Instantly share code, notes, and snippets.

@mottosso

mottosso/MAP.md Secret

Last active August 31, 2015 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mottosso/218e7344efb95175f4c4 to your computer and use it in GitHub Desktop.
Save mottosso/218e7344efb95175f4c4 to your computer and use it in GitHub Desktop.
Asset Map 0.3

Magenta Asset Map v0.3

Node Description
A transformation; i.e. input A turns into output B
Transformation from -> to
Instance, the inverse of a file. May have one or more representations
A representation, such as a .jpeg file or .exr sequence
Updated individually
A comment
Artist
Task
Group
Family
import os
import json
def hierarchy_to_dict(path):
d = dict((n, hierarchy_to_dict(os.path.join(path, n)))
for n in os.listdir(path)
if os.path.isdir(os.path.join(path, n)))
return d
print json.dumps(hierarchy_to_dict(
r'C:\Users\marcus\Dropbox\projects\MagentaHierarchy0.3'), indent=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment