Begin your Archicad journey with our free learning path - perfect for newcomers and experienced users looking to strenghten their skills.
2025-02-26 11:08 AM
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.
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:
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.
2025-06-03 03:26 AM
Hi, I'd suggest you to use ACAPI_Element_GetMemo () to get the instance parameter values, you can get actual value of tree type index from memo.params array. For actual textures, as the default Deciduous Trees.gsm is using embedded textures, so you're not able to get the file path.
HTH.