I'm developing an add-on that needs to extract textures of trees placed in a scene. I've made progress but I'm still missing a crucial piece of the puzzle.
What I've accomplished so far:
- I can identify when a tree object is placed in the scene (Deciduous Trees.gsm)
- I can extract the GSM file and analyze its structure
My challenge:
When I extract the GSM object, I only get information about the general "Deciduous Trees" object, but not which specific tree the user placed (oak, maple, etc.), nor can I find the path to its textures.
From my logs, I can see:
- The GSM path: .../Plants and Outdoor Accessories/Plants/Deciduous Trees.gsm
- I can access parameter definitions, but the actual values seem empty
My specific questions:
- How do I determine which specific tree type was placed in the scene?
- How do I access the instance parameters (not just the GSM object parameters)?
- What's the best way to get the path to the actual textures used for this specific tree?
I suspect I need to access the instance parameters rather than just examining the GSM object definition, but I'm not sure about the correct approach in the API.