0

tk-maya directory mappings

tk-maya should have an option to set up directory mappings for the roots defined in shotgun, ie

sg_path_maps = engine.tank.pipeline_configuration.get_all_platform_data_roots()
for name, path_map in sg_path_maps.items():
 
    for platform in ["win32", "linux2", "darwin"]:
        if platform != sys.platform:
            cmds.dirmap(m=[path_map[platform], path_map[sys.platform]])
 
dirmap needs to happen before tk-workfiles2 opens so this is pretty tricky to do without forking tk-maya

0 comments

Please sign in to leave a comment.