I like to keep my scenes clean. Much of my Blender life is spent naming an object, copying the name and pasting the same object name into the mesh data name. Is there a quick way of doing this (or an add-on out there) where I can name a single-user mesh and the mesh data will be replaced with the same name?
Well I've had the same problem for quite a while, I like keeping my scenes clean and objects well named and always spend considerable amount of time doing so. There are quite a few addons around that make the task easier though.
- Name Panel addon is my favorite and combines a name panel on the properties shelf of the 3D view with a fantastic batch renaming tool for renaming and name copying en mass
- There is also Batch Rename Datablocks which also works quite well albeit a little simpler.
- And also Batch Naming which doesn't copy names but also does batch renaming
And if you want to change the name through Blender's Python API you can run the following:
bpy.ops.object.select_all(action='DESELECT') # Deselect everything in the scene bpy.context.scene.objects['oldMeshName'] # Select the mesh whose name is going to change bpy.context.scene.objects.active.name = 'newMeshName' bpy.context.scene.objects.active.data.name = 'newMeshName'