How to get all collectons list
To get a list of collections with all internal collections, we can use the following function:
1 2 3 4 |
def collections(collection, col_list): col_list.append(collection) for sub_collection in collection.children: collections(sub_collection, col_list) |