How to get all the Drawables in a model as Nodes
Hiii
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.. Regards Pankaj Bansal |
I have managed to get do this..
sorry for asking this... |
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:
Code:
model.texture(tex,node='drawable name') |
All times are GMT -7. The time now is 02:24 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC