Author Topic: Bulk Edit of path to pictures  (Read 941 times)

Offline abundy

  • Newbie
  • *
  • Posts: 2
    • View Profile
Bulk Edit of path to pictures
« on: July 10, 2019, 07:39:48 AM »
HI all.
I have imported a sequence and mapped to my setup all no problems.
However i noticed that all of the pictures associated with this sequence are in my show directory, and i dont want them there.
So i have copied them to where i want them, but now all of the paths in the .xml file are incorrect.
I know you can bulk edit to change the path, but i have over 400 references to picutres that need changing.
Just wanted to know if there was another way to do a bulk edit without having to select all of the picture effects in the sequencer.
I was hoping to avoid either selecting all of these or editing the xml file due to the number of edits involved.
Thanks,

Offline Gilrock

  • Supporting Member
  • Hero Member
  • *
  • Posts: 6946
    • View Profile
Re: Bulk Edit of path to pictures
« Reply #1 on: July 10, 2019, 09:42:54 AM »
I thought they added a way to select all effects of the same type but not sure.  Check all the right click options.

But editing the XML is like a 5 second search and replace operation.  It doesn't matter how many edits there are when all you do is a find/replace on the path.  Use Notepad++ and grab a teenager to do it.

Offline keithsw1111

  • Administrator
  • Hero Member
  • *****
  • Posts: 2733
    • View Profile
    • Kellyville Christmas Lights
Re: Bulk Edit of path to pictures
« Reply #2 on: July 10, 2019, 12:57:21 PM »
Select a picture effect. Press curl-a to select all effects. Now right click on the picture effect file name and bulk edit the path. It is smart enough to only apply it to pictures from memory.

Offline aknflyer

  • Jr. Member
  • **
  • Posts: 76
  • 43 year Telecom Tech
    • View Profile
Re: Bulk Edit of path to pictures
« Reply #3 on: July 11, 2019, 12:46:55 AM »
If that does'nt work for you, the old way before that feature is this:

Renaming image files: Open XML in notepad++ and do find replace
Open each sequence xml. lets say that your images where in C:\Documents\2015Show\Images\ and you know want it to be in C:\Documents\2016ChristmasShow\Images\ , so you find "C:\Documents\2015Show\Images\" and replace it with "C:\Documents\2016ChristmasShow\Images\" (all occurrences in the xml). then save the xml.
Repeat for each sequence xml. Suggest that after doing one , you open the xml in xlights , render all and play and make sure that the images (if in picture effects) appear correctly .

Worked for me.

Offline abundy

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Bulk Edit of path to pictures
« Reply #4 on: July 11, 2019, 07:32:42 AM »
Select a picture effect. Press curl-a to select all effects. Now right click on the picture effect file name and bulk edit the path. It is smart enough to only apply it to pictures from memory.
Cheers Keith, this worked a treat.