View Full Version : How to get all the Drawables in a model as Nodes

pankaj bansal
12-25-2012, 01:00 PM

I want to get access to all the children of a node. I know I have to use node.getChild but that only gives me nodes which are children of that node. If I want to get access to all the drawables also, what should I do. This the support it shows the getChild don't work with drawables. So what should I do..

Pankaj Bansal

pankaj bansal
12-29-2012, 12:21 PM
I have managed to get do this..
sorry for asking this...

01-02-2013, 10:30 AM
No need to be sorry. Most commands that accept the optional node name argument, can be used to access drawable objects. For example, you can apply a texture to a specific drawable by specifying the drawable name as the node argument to the node.texture command:
model.texture(tex,node='drawable name')