Page 1 of 1

Copy from one show to another

Posted: Fri Sep 09, 2016 6:20 pm
by EBDS
Hi folks. I had two lights that I was going to sell and replace with two new lights. So I started an edit of my show, deleted the lights to be sold and added the lights to be kept. Now I have decided that I might keep the lights I was originally to sell. But the old lights are programmed into one show and the new lights are programmed into another. Is there some way I can pick up sections of the old show and insert them into the new show, a merge of sorts? G_d I hope so; I would not want to have to reprogram all the stuff I had for the old lights.

Re: Copy from one show to another

Posted: Fri Sep 09, 2016 7:59 pm
by janosvitok
You can open the files in plain text editor, they are ordinary XML files.

You can copy parts back and forth provided that some rules are satisfied.
I won't tell you all the rules, but they are pretty obvious:
- fixture identifiers must be unique (within one file) and match between the files (so that the rest is related to proper fixtures). Since you started with the same base, most probably the newer lights have different IDs then the old ones.
- function IDs must be unique within one file

Don't forget to always make backup copies.
If you don't know XML format, ask google/wikipedia, it's pretty simple. If you know HTML you will find yourself at home soon.

Obviously, if you know a bit of ruby/python/php/etc. you may write a script to copy the respective parts and adjust IDs as needed.
If the file is large, and you get stuck, ask again, and maybe I can write a script for you.