Hello, I’m enjoying armory since a few days ago and ran into a problem of GetChild, that is, accessing to child with its name.
Say I have two objects, tank1 and tank2, since I’m working around the tank tutorial. I also have an object called spawnLocation as a child for each tank object. Thus, My scene would look something like
tank1
└─spawnLocation
tank2
└─spawnLocation
Now, I would like to make a single node tree that can be used as a trait for both the tank objects, while getting the location of the spawnLocations.
However, this won’t work. I believe this is because one of the spawnLocation is automatically renamed as “spawnLocation.001”, which is kinda different from the name I gave as the input.
So my question is "Is there any sophisticated way to get the Child by the name while ignoring the index in the name?"
Note that
- Using GetChildren node works but using a indexing number doesn’t seem to make a readable node tree.
- I would like to keep them in a single node.
Thanks for your attention.