Print at Dec 18, 2025, 11:13:58 PM

Posted by slikrik98 at Nov 8, 2023, 12:48:48 AM
Re: How to obtain the ID of a light source
If I open my home.obj file, I see lines that begin with 'g' and have some unique identifier after them. i.e.:

g Seat_897
usemtl fltan


I don't know where or how "Seat_897" is created/found, and in fact my home.xml file does not contain the word "seat" in it at all.

I found my incandescent light source in the XML file you pointed me to, but nowhere do I see any ID (other than its guid).

If you're wondering why I care about this -- I have an application (Home Assistant) that imports my .obj files and allows me to couple devices in my home to objects in my scene. For instance, I can tie a smart lightbulb to a lamp in my 3D scene and whenever I turn on my light, the scene renders with the lamp on, etc.

But I need to know the ID -- or what Home Assistant is referring to as the ID, the "g" line above -- of the light source in question to create this coupling.