WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   How to get all the Drawables in a model as Nodes (https://forum.worldviz.com/showthread.php?t=4449)

pankaj bansal 12-25-2012 01:00 PM

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

pankaj bansal 12-29-2012 12:21 PM

I have managed to get do this..
sorry for asking this...

farshizzo 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:
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