2023-03-09 08:33 AM
I recall there is a way to bind images used within the interface into the gsm file, so they don't have to be separate. I have had a look through the LP_XMLConverter thinking it would be done here but can't find it. Can it be done?
Solved! Go to Solution.
2023-03-09 09:37 AM - edited 2023-03-09 09:42 AM
Hi!
Yes, there is a way.
1. Use LP_XMLConverter to turn your .gsm into hsf file format
2. In the hsf folder structure create an "images" folder next to your "scripts" folder and put your images there
3. Open the libpartdata.xml file to refer to your images
More on hsf source format and libpartdata.xml and its syntax on the GDL Center
4. Use LP_XMLConverter to turn your hsf back to .gsm
5. Refer to your images by their number in your code!
Let me know if you have any other questions!
Best regards,
Zsuzsi
2023-03-09 09:37 AM - edited 2023-03-09 09:42 AM
Hi!
Yes, there is a way.
1. Use LP_XMLConverter to turn your .gsm into hsf file format
2. In the hsf folder structure create an "images" folder next to your "scripts" folder and put your images there
3. Open the libpartdata.xml file to refer to your images
More on hsf source format and libpartdata.xml and its syntax on the GDL Center
4. Use LP_XMLConverter to turn your hsf back to .gsm
5. Refer to your images by their number in your code!
Let me know if you have any other questions!
Best regards,
Zsuzsi
2023-03-10 12:20 AM
Thanks Zsuzsi,
There's a few manual steps there for a library with many objects, pity it is not more automated but will look into it.
2026-02-17 06:19 PM
Can this be used to embed textures into gsm objects?
If you have a large number of objects (it's vegetation models I'm working with) you don't want to create library files for them, you just want a gsm object with everything embedded.
If the LP_XMLConverter is the only way to do this, can it be automated using AI coding tools?
It might be something the Graphisoft team might be able to test and report on, because we have been asked about AI tools to assist with GDL scripting. Adding the ability to do this easily would be really helpful because using the command line is a little cumbersome.
2026-02-17 09:49 PM
@Jim Allen schrieb:
..., because we have been asked about AI tools to assist with GDL scripting.
I wrote about a GDL Development Environment on my website:
https://www.b-prisma.de/develop/gdl-development-environment/
GDLnucleus and GDLnucleus light are able to do the jobs without the command line.
2026-02-18 11:17 AM
Thanks!
Can it batch process folders of files?
I used Perplexity to search for this and found that LP_XMLConverter can apparently.
I have a lot of files to process so automating it for an entire folder is what is really required.
Does anyone have any scripts that can be used to automate this?
2026-02-18 12:01 PM
@Jim Allen schrieb:
Thanks!
Can it batch process folders of files?
Does anyone have any scripts that can be used to automate this?
Yes, it can batch process folders with files. And the scripts runs automatically.
You only need to download the files and to download and install Visual Studio code.
2026-02-18 01:11 PM
Sounds perfect - thanks!