Thanks to Rookirk for advising me on script setup.
This Blender add-on allows you to import a .csv of light positions and use meshes in Blender to manipulate the colors of the lights. You can then export those colors as another .csv to use however you'd like (maybe to submit an animation somewhere?)
You can also re-import the .csv to see a preview of how the lights will be set up.
Step 1: Go to the releases page, and download the latest .zip release.
Step 2: Open Blender
Step 3: Click Edit -> Preferences
Step 4: Click "Install"
Step 5: Click on the .zip file you saved
Step 1: Go to File -> Import -> Import LED Tree Coordinates
Step 2: Import the .csv file of values for your tree. Here's this year's.
Step 3: Create a mesh in the scene. Any mesh will do.
Step 4: Go to the materials tab for your mesh, click "New", then click "Use Nodes". You want nodes disabled so there's a clear color for the lights to pull from.
Step 5: Create and animate as many meshes as your heart desires. You may have to watch a tutorial for animation in blender if you haven't already.
Step 6: Click on the christmas tree you imported.
Step 7: Go to File -> Export -> Export Light CSV
Step 1: Import the LED Tree Coordinates if you haven't already.
Step 2: Click on the christmas tree you imported.
Step 3: Go to File -> Import -> Import LED Animation
Step 4: Wait.
Step 5: Hit space, and watch the animation!
Sorry, the way that the script is currently set up, you can't use Blender's shader nodes. However, the lights will average the colors of the objects they are currently inside of. Do with that what you will. I might add some options to mess around with an object's color priority/influence if there's enough demand for it.
Most of the importing and exporting processes for this add-on require information about the tree's coordinates. Make sure you have those imported and SELECTED in blender before doing any other operations.
Sorry, that's probably something to do with the collision code messing up. Blender isn't exactly designed for this kind of thing, so I have yet to fix it. If you're really annoyed by it, let me know.
Absolutely. If you use this for anything else other than making bulbs on a tree change color, I will find you and devour you whole.



