Author Topic: scripting  (Read 1249 times)

Offline morry

  • Full Member
  • ***
  • Posts: 100
    • View Profile
scripting
« on: November 03, 2021, 12:23:49 PM »
Does xLights support scripting so if I change any of my models I can write a script that will automatically load and resave all my sequences in my show directory

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: scripting
« Reply #1 on: November 03, 2021, 12:38:42 PM »
No.  You can do a Batch Render but that will complain when a model doesn't match.  But technically you can do all this with an external script you don't need to involve xLights.  Just script the model changes and alter the xlights_rgbeffects.xml and all the sequence files.  Then run Batch Render.

Offline morry

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: scripting
« Reply #2 on: November 03, 2021, 01:18:16 PM »
Thanks but not quite sure what you mean by script the model changes my though was go in to layout make my model changes then have a script that would open and resave each sequence. You did mention some thing of interest batch render where is that?

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: scripting
« Reply #3 on: November 03, 2021, 02:35:56 PM »
There's not that many menu items just look at them all and see what's there.

It depends on what kind of changes you are making to the model.  I assumed you were changing names or something like that.  All the files are text files so could script that in Python.  If you're not changing the model names then Batch Render will re-render everything for you.  To be clear that doesn't "re-save" the sequence files it saves the FSEQ output files that contain the actual rendered data.

Offline morry

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: scripting
« Reply #4 on: November 06, 2021, 09:09:52 AM »
actually changing the number of nodes in some models. Can  you turn off the popups that come up in batch render so it is a true batch process. Is there a command line tool to do this
« Last Edit: November 06, 2021, 09:13:28 AM by morry »

Offline allknowing2012

  • Sr. Member
  • ****
  • Posts: 386
    • View Profile
Re: scripting
« Reply #5 on: November 06, 2021, 09:43:38 AM »
File->Preferences, Other
Uncheck Prompt issues during batch render

Note if you truly have bad models not sure the rendered sequence is of much value.

Offline morry

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: scripting
« Reply #6 on: November 06, 2021, 11:19:38 AM »
Issues aren't bad models they are missing files due to imported shows