How to change the name of a mesh ?

Hi all,

I’m just trying to change the name of a mesh : =

But it doesn’t work. I think it would be better I use a function like “setName” but this function isn’t definied for Blender Meshes.

Any idea ?

Thanks :slight_smile:


from Blender import Window 
import bpy 
ob_act = # assuming we have an active, might be None 
me = ob_act.getData(mesh=1) = 

Thanks a lot :slight_smile: .
I thought that “” was equal to “obj.getData(1)” when dealing with meshes objects. is unfortunately only read-only data. I’m glad the snippet worked out for you. :slight_smile: