1
$\begingroup$

In Blender, object names and meshes names may be different, as in Cube2 and Cube.001. enter image description here

Is there a way to get the meshes name from the object name using Python?

Also,Is there only one meshes node per Object?

$\endgroup$
3
  • 3
    $\begingroup$ obj.name gives you the object name. obj.data.name gives you mesh name. And yes, AFAIK there can be only one mesh per object. However there can be multiple objects sharing the same mesh data block. $\endgroup$ Oct 9, 2019 at 6:51
  • 3
    $\begingroup$ @BlenderDadaist you could post this as an answer. $\endgroup$
    – Robert Gützkow
    Oct 9, 2019 at 8:36
  • 1
    $\begingroup$ @rjg I have put that as an answer. $\endgroup$ Oct 9, 2019 at 14:23

1 Answer 1

4
$\begingroup$

obj.name gives you the object name. obj.data.name gives you mesh name. And yes, AFAIK there can be only one mesh per object. However there can be multiple objects sharing the same mesh data block.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .