I would like to rename every collection and object I currently have selected.
Code:
import bpy
selection = bpy.context.selected_objects
for x in selection:
x.name = 'test_' + x.name
x.data.name = 'test_' + x.data.name
But the variable selection
does not have any collections in it.