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$
  • 2
    $\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$ – Blender Dadaist Oct 9 '19 at 6:51
  • 2
    $\begingroup$ @BlenderDadaist you could post this as an answer. $\endgroup$ – Robert Gützkow Oct 9 '19 at 8:36
  • $\begingroup$ @rjg I have put that as an answer. $\endgroup$ – Blender Dadaist Oct 9 '19 at 14:23
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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.