Retrieving nested 3D objects

Software: Away3D 4.x

RIAwolf, Newbie
Posted: 26 June 2014 10:35 AM   Total Posts: 8

I was wondering wether there is a way to retrieve 3D objects already added to scene by name or id, similar to assets library.

If not, what approach would you suggest? For now im using recursive traversing of the children looking for a name string, before i invest more time into developing extended version of that, i would like to know if something similar is already available.

   

John Brookes, Moderator
Posted: 28 June 2014 07:47 PM   Total Posts: 732   [ # 1 ]

Easy option is to add your 3d objects, materials etc to the AssetLibrary.
Then you can use the AssetLibrary to get by name.

Away3D doesn’t have getChildByName
So if you don’t use assetLibrary, you will have to do your own function to recurse the children of the scene looking for the name.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X