0
$\begingroup$

I try to get my name object from Object struct, but it seem that name doesn't exist in this struct. Where is name of Object. ?

Thanks a lot.

$\endgroup$
  • $\begingroup$ In file "object.h" file, the Object class has a public property called "name". It may be what you want ? $\endgroup$ – Dominique Parisot Aug 30 '17 at 15:37
  • $\begingroup$ Humm, i think not. Actually if i create an object type Object : Object *obj; Object come from DNA_object_type.h who doesn't have name. Maybe i do it wrong. $\endgroup$ – Colin Laubry Aug 30 '17 at 15:47
1
$\begingroup$

Ok, After some dumb research, I find ID property who hold basic property like name.

Object *obj;
printf("%s", obj.ID.name);
$\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.