xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
530 stars 197 forks source link

Import submodels to differently wired copy of a prop #4631

Closed kevinsaucier closed 2 weeks ago

kevinsaucier commented 2 weeks ago

So, I'm 'fixing' some incorrect wiring on props and it occurs to me that it would be possible to import the submodels from one prop into another, assuming the renumbered pixels are in the same place as the pixels in the original prop. For instance, if you take prop A with an OEM wiring diagram, then copy it and create prop B and customize/fix the wiring diagram. All is fine and dandy till you look at the submodels/faces/states. But, in reality, the data needed for the submodels is available in prop A by looking at the grid coordinates of pixel 1, pixel 2, pixel 3, etc. If pixel one is Row 3 Column 7 on prop A and pixel 14 is Row 3Column 7on Prop B, all we need to do is switch each pixel in the submodel from pixel 1 to pixel 14.

Of course, if prop B had pixels in a different place than prop A, that messes up the whole thing, though a list could be generated to note that prop B doesn't have a pixel in Row 3 Column 7 so you could see what was different (or allow you to choose a pixel number to map to it on the fly, but that makes it more complicated).

Seems that 'fixing' wiring/submodels is a common issue that could be helped by going this route. I was just about to see if I could do it via PowerShell but it would obviously be easier and more accessible to do it in xLights itself. :)

keithsw1111 commented 2 weeks ago

This already exists in the tools menu. Sent from my iPhone

On 25 Jun 2024, at 7:16 AM, Kevin Saucier @.***> wrote:



So, I'm 'fixing' some incorrect wiring on props and it occurs to me that it would be possible to import the submodels from one prop into another, assuming the renumbered pixels are in the same place as the pixels in the original prop. For instance, if you take prop A with an OEM wiring diagram, then copy it and create prop B and customize/fix the wiring diagram. All is fine and dandy till you look at the submodels/faces/states. But, in reality, the data needed for the submodels is available in prop A by looking at the grid coordinates of pixel 1, pixel 2, pixel 3, etc. If pixel one is Row 3 Column 7 on prop A and pixel 14 is Row 3Column 7on Prop B, all we need to do is switch each pixel in the submodel from pixel 1 to pixel 14.

Of course, if prop B had pixels in a different place than prop A, that messes up the whole thing, though a list could be generated to note that prop B doesn't have a pixel in Row 3 Column 7 so you could see what was different (or allow you to choose a pixel number to map to it on the fly, but that makes it more complicated).

Seems that 'fixing' wiring/submodels is a common issue that could be helped by going this route. I was just about to see if I could do it via PowerShell but it would obviously be easier and more accessible to do it in xLights itself. :)

— Reply to this email directly, view it on GitHubhttps://github.com/xLightsSequencer/xLights/issues/4631, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACOOXKCHOBFAQM6HQEQVQRDZJCECNAVCNFSM6AAAAABJ2SFRGCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TCMJQHEYDGNY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

kevinsaucier commented 2 weeks ago

This already exists in the tools menu.

Ahhh, you are correct, of course. I looked around but didn't think to look in the tools menu. Thanks for the pointer.