pramod.s Posted August 22, 2012 Share Posted August 22, 2012 Hello, I have added few ObjectMesh using add_editor(new ObjectMesh("*.mesh")); after this I set transformation matirx & set material & property for all the mesh objects. Now I am trying to get access to the names of each of these meshes using ObjectMesh.getName(), but I am getting null values to all. Can anyone tell me at which stage the names will be assigned to dynamically add objectmesh, so that I can access them after it. Thanks Link to comment
pramod.s Posted August 23, 2012 Author Share Posted August 23, 2012 Can any onr reply to this? Link to comment
steve3d Posted August 24, 2012 Share Posted August 24, 2012 Use that way of creating a mesh won't have a name, so of course you'll get null string Link to comment
pramod.s Posted August 24, 2012 Author Share Posted August 24, 2012 But when I check the nodes from the editor, I am able to see the names of the ObjectMesh. So if I am not able to get the names of the objectmesh through mentioned way, than what is that I need to do to access the specific objectmesh Thanks Link to comment
steve3d Posted August 24, 2012 Share Posted August 24, 2012 Yes you can see the name of mesh like ObjectMesh_xxx, but if you select it, you will find the name part in Nodes tab are blank. Meas no name, use id if you can or manually set the name. Link to comment
Recommended Posts