ShiVa3D
get an object by it's name ( getObjectByName )
You need some features? ask it to us here!get an object by it's name ( getObjectByName )
by mal_CanDo » 27 May 2009, 11:14
Hi there,
It would be great if you could get an object by using just it's name ( eg scene.getObject or scene.getObjectByName ). This is something that most people will try to do fairly on in their Shiva testing - having to tag an object, and then use scene.getObjectByTag, is more complicated and also takes longer to set up ( you have to go through each object in the scene that you want to reference and set a tag on it - if you have imported a scene with hundreds of objects, this is an issue ).
Does this function already exist ( I'm new to Shiva ), or is there a reason it hasn't been implemented?
Mal
It would be great if you could get an object by using just it's name ( eg scene.getObject or scene.getObjectByName ). This is something that most people will try to do fairly on in their Shiva testing - having to tag an object, and then use scene.getObjectByTag, is more complicated and also takes longer to set up ( you have to go through each object in the scene that you want to reference and set a tag on it - if you have imported a scene with hundreds of objects, this is an issue ).
Does this function already exist ( I'm new to Shiva ), or is there a reason it hasn't been implemented?
Mal
- mal_CanDo
- Gold Boarder

- Posts: 206
1 post
• Page 1 of 1