I think this is a simple fix, but I can’t figure it out. I am using TD to control LED pixels over Artnet. I am using an Enttec Pixelator Mini with PLinks, connected to my PC. The type of led is a 7 Bit Ws2812 5050 RGB Ws2812 Ring (photo attached).
I would like to be able to control a group of 7 LEDs at a time. Or in other words, the entire ring of lights changing at the same time, as opposed to the individual LEDs changing one at a time.
I have tried using a shuffle CHOP, as well as the quantize function on a limit CHOP to group 7 LED’s together, but this did not work.
I would recommend doing your “duplication” way back in the start of the SOP chain - IE make 7 points that occupy the same physical space (like a line SOP that goes from 0,0,0 to 0,0,0 with 7 points) - and then use the Copy SOPs to place your 7 point clusters at each spot you want a cluster to exist.
You were already kinda trying to do this in your toe file, but you still had it spreading out those 7 points along a line with the 7*op('LightSettings')['numLightBulbs'] in the “Number of Points” parameter in your first Line SOP. Instead, get rid of that 7* in the first Line SOP and do this instead:
Then when your TOPto CHOP samples the raster, it’s already making 7 copies of the data per LED cluster from the get-go.
There is probably a way to do it with the Resample CHOP, but working with that CHOP and resampling CHOPs in general is sometimes not an exact science because of weird floating point stuff and the mysteries of sample rate vs interval vs index range in a multisample CHOP. better to just do all that before CHOP land…
Also, depending on what LED controller you are using, some will let you group or repeat the same data X number of times in a setting on the LED controller to handle these kind of situations (or make the “pixels” bigger in an otherwise high-res LED strip), but that is less flexible than the method described above.
You might also later on down the road, want to try actually spreading the sampling for those 7 LEDs out -even just a little bit - as having some some slight variance while still being MOSTLY the same color could add a really nice touch to your project that might enhance it almost subconsciously.
The real fun in PixelMapping comes when you realize there doesn’t HAVE to be a “one-to-one” relation between the physical layout of the LEDs and the sampling points you use to grab their data from your content… but also there CAN be arbitrary relationships between the two that can be an artistic / creative interpretation rather than just a literal “one-to-one” mapping.