# Another LB API Demo :-) Automatic object placement

**URL:** <https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530>\
**Category:** LightBurn Companion App\
**Tags:** camera, Labs, REST-API\
**Created:** [October 28, 2026, 10:00am UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530 "2026-10-28T10:00:31Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![misken](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/misken/32/47593_2.png) [@misken](https://forum.lightburnsoftware.com/u/misken)\
**Post date:** [October 28, 2026, 10:00am UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/1 "2026-10-28T10:00:31Z")

</div>

Over the years, the following use case was raised every once in a while: detecting objects in the camera overview and place objects automatically. Other software allows this already, and using the API, it was just a few hours of talking to AI to finish a first prototype: 🙂  
It’s a small Python app that loads the camera overly, searches for shapes; the user can choose an SVG file, select the desired shapes, and the tool sends the SVG scaled and rotated back to LB.  
Of course—much detailed work would be required to make it really usable, but I was already happy with it.

 ![grafik](https://forum.lightburnsoftware.com/uploads/default/original/3X/4/4/44820aa6bbe9a76c258878bcf66d49ba0091fb45.jpeg)

Here is a video showing it in action:

[![](https://img.youtube.com/vi/fzswvHz54i0/maxresdefault.jpg "LightBurn API Demo — Automatic Placement of Graphics") ](https://www.youtube.com/watch?v=fzswvHz54i0)

---

<div class="post-metadata">

**Author:** ![Colin](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/colin/32/41542_2.png) [@Colin](https://forum.lightburnsoftware.com/u/Colin)\
**Post date:** [October 28, 2026, 4:03pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/2 "2026-10-28T16:03:36Z")

</div>

I actually have a pretty similar version of this sort of tool already handed off to the dev team to review internally 🙂

---

<div class="post-metadata">

**Author:** ![bernd.dk](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/bernd.dk/32/125208_2.png) [@bernd.dk](https://forum.lightburnsoftware.com/u/bernd.dk)\
**Post date:** [October 28, 2026, 4:17pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/3 "2026-10-28T16:17:58Z")

</div>

Is this something we can test and play with?

---

<div class="post-metadata">

**Author:** ![misken](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/misken/32/47593_2.png) [@misken](https://forum.lightburnsoftware.com/u/misken)\
**Post date:** [October 28, 2026, 5:28pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/4 "2026-10-28T17:28:15Z")

</div>

Yes, it’s a quite obvious function that I think makes sense to have directly integrated into LB 🙂

---

<div class="post-metadata">

**Author:** ![misken](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/misken/32/47593_2.png) [@misken](https://forum.lightburnsoftware.com/u/misken)\
**Post date:** [October 28, 2026, 5:28pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/5 "2026-10-28T17:28:57Z")

</div>

Sure, though it’s currently just a bare script with a German user interface, I will enhance it a bit to make it usable for everyone 🙂

---

<div class="post-metadata">

**Author:** ![JohnJohn](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/johnjohn/32/37027_2.png) [@JohnJohn](https://forum.lightburnsoftware.com/u/JohnJohn)\
**Post date:** [October 28, 2026, 6:11pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/6 "2026-10-28T18:11:38Z")

</div>

@misken With all the anticipated enthusiasm that we have about the REST-API feature set we’ve got a new section open.

I’m moving this thread there. All the links are expected to remain working.

🙂

---

<div class="post-metadata">

**Author:** ![Rick](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/rick/32/69_2.png) [@Rick](https://forum.lightburnsoftware.com/u/Rick)\
**Post date:** [October 28, 2026, 6:15pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/7 "2026-10-28T18:15:01Z")

</div>

Really enjoy the creativity with this @misken. Thank you friend. 🙂

---

<div class="post-metadata">

**Author:** ![misken](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/misken/32/47593_2.png) [@misken](https://forum.lightburnsoftware.com/u/misken)\
**Post date:** [October 29, 2026, 7:43pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/8 "2026-10-29T19:43:17Z")

</div>

> [@bernd.dk](#):
>
> Is this something we can test and play with?

Try this download: [https://diode-laser-wiki.com/wp-content/uploads/2026/10/align-cam.zip](https://diode-laser-wiki.com/wp-content/uploads/2026/10/align-cam.zip) It just contains one python file and some documentation. I might upload it to GitHub as well, I don’t have it structured very well yet.

Edit: you might need to install some python libraries, then you can just start the tool by typing “python align-cam.py”

---

<div class="post-metadata">

**Author:** ![bernd.dk](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/bernd.dk/32/125208_2.png) [@bernd.dk](https://forum.lightburnsoftware.com/u/bernd.dk)\
**Post date:** [October 29, 2026, 8:35pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/9 "2026-10-29T20:35:56Z")

</div>

Thanks Melvin, I’m looking forward to looking at it tomorrow.

---

<div class="post-metadata">

**Author:** ![bernd.dk](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/bernd.dk/32/125208_2.png) [@bernd.dk](https://forum.lightburnsoftware.com/u/bernd.dk)\
**Post date:** [October 30, 2026, 9:28am UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/10 "2026-10-30T09:28:01Z")

</div>

Hi Melvin, I couldn’t get it to work. It has nothing to do with your program, it’s just been too long since I’ve worked with Thonny/scripts and I wasn’t very good at it either 😉  
But I’ve read your description of the script and understand how it’s supposed to work.

I’ve also been to your HP to see if there’s any additional information. Even though I couldn’t find anything about your last project, I’m very impressed by your fine work within diode laser machines and their peripherals, you can find many gems in the different sections.

I think/believe that LB will and must integrate tools like the one you’re working with, not least to maintain its leading position within laser control programs.

regards bernd.dk

---

<div class="post-metadata">

**Author:** ![misken](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/misken/32/47593_2.png) [@misken](https://forum.lightburnsoftware.com/u/misken)\
**Post date:** [October 30, 2026, 10:42am UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/11 "2026-10-30T10:42:09Z")

</div>

Are you using Windows? Then I guess you need to install Python first ([Download Python | Python.org](https://www.python.org/downloads/)). Afterward, extract the zip to a folder and open the windows command line and jump into that folder. Then you might need to run the first command once (installing the libraries) and then you can run the tools with the simple command.  
Though I don’t know if I have installed some other stuff over the years of development 🙂

---

<div class="post-metadata">

**Author:** ![bernd.dk](https://forum.lightburnsoftware.com/user_avatar/forum.lightburnsoftware.com/bernd.dk/32/125208_2.png) [@bernd.dk](https://forum.lightburnsoftware.com/u/bernd.dk)\
**Post date:** [October 30, 2026, 12:07pm UTC](https://forum.lightburnsoftware.com/t/another-lb-api-demo-automatic-object-placement/193530/12 "2026-10-30T12:07:28Z")

</div>

No, I’m on a Mac and have Python installed along with a little bit of other stuff for Arduino programming, but I use it far too little.
