PDA

View Full Version : recursive function?


Dave_Hingley
03-23-2006, 06:25 PM
i have to find texture maps in a material. the maps might be hidden in nestled mix, mask or composite materials.
Is it possible to check each branch of a mix and stroe the order the maps are applied?

here is an example:

MATERIAL
|-mix
|-mix map 1
| |- checker
|-mix map 2
|-mix
|-mix map 1
|-mix map 2
|- Bitmap


what i would like to do is to return the filename of the bitmap and its location within this material so i can swap out the texture map in code.

i had thought about an initial function that quiries the channel and depending on the sort of material there runs a series of other functions. however this is seemingly getting way complicated. so i was wondering if there is a way of doing this?

cheers :)

CGTalk Moderation
03-23-2006, 06:25 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.