I'm currently creating a script that I'm using to organize a lot of assets at once (I will share it once it works).
I want to use move_to_collection so that I don't have to keep track of all the collections where the asset currently is. But move_to_collection wants a Collection ID, and I only have the collection object retrieved from bpy.data.collections and I would love to get the collection ID from it.
bpy.context.scene*) not iterating over data blocks (bpy.data*) – brockmann Apr 20 '20 at 13:42Collection["CollectionName"]is even more error prone than anything else. Suggest add more details to your question. Please read: https://blender.stackexchange.com/help/how-to-ask – brockmann Apr 20 '20 at 14:27