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$ Commented Oct 9, 2019 at 6:51
  • 3
    $\begingroup$ @BlenderDadaist you could post this as an answer. $\endgroup$ Commented Oct 9, 2019 at 8:36
  • 1
    $\begingroup$ @rjg I have put that as an answer. $\endgroup$ Commented 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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.