![]() |
|
|
|
#1
|
|||
|
|||
|
By the way 3d files are chosen by the user at runtime which is why I'm struggling to get a handle on the geode name
![]() I've a feeling this is probably a lot simpler than I'm imagining it to be (these things quite often are )
|
|
#2
|
|||
|
|||
|
Just in case someone else has a mental blockage over this (like me
) and just to close the thread, I solved this by creating a dictionary that mapped the node id to the geode name, then its a simple matter of indexing to retrieve the GEODE name - Code:
#Fill components list with model child nodes and then sort it components = model.getNodeNames() components.sort #Traverse through scene graph children one by one and create dictionary map for a in range(len(components)): if components[a] == "__VIZARD_NODE__": #finish loop at root node break elif components[a][-5:] == "GEODE": k = model.getChild(components[a]) dict[k] = [components[a]] #Create dictionary continue Last edited by nige777; 11-07-2010 at 04:51 PM. |
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 05:26 AM |
| Documentating function names | aaThomas | Vizard | 5 | 05-15-2007 10:50 AM |
| changing the texture of an avatars shirt/body | bailenson | Vizard | 19 | 05-04-2006 11:00 AM |