## [Submission] Batch Change Parameters script [SUBMITTED]

Moderator: SecondMan

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 1
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### [Submission] Batch Change Parameters script  [SUBMITTED]

Batch Change Parameters is a Comp script that modifies inputs on multiple tools simultaneously. The tools need not be identical, but they do need to have Inputs in common. To use the script, select more than one Tool in your flow, and point your mouse to Script > Comp > Batch_Change_Parameters.

In the interface that appears, choose the Input you wish to change from the Choose Parameter combo box. Then in the Set To: section, enter the desired new value. Clicking Apply changes the Input on all selected Tools, but it does not close the window, allowing you to continue setting different Inputs until you are done.

User Interface example
batchChangeParameters_UI.jpg (29.71 KiB) Viewed 132 times

Upon selecting a Parameter, the Set To: section configures itself to show only appropriate data entry fields types: Combo boxes for FuID types, a text entry field for Numbers and Text, and a pair of fields for Points. The label on the field indicates the expected data type.

Changelog
v2.0 - 22.Jan.2018
• Updated for Fusion 9 and UI Manager
• Improved code for legibility and efficiency
• Added in-line documentation
• Removed orphan and redundant functions
• Removed un-implemented math operations code
v1.0 - 22.Feb.2007
• first public release by SlayerK

Atom file contents:

Code: Select all

Atom {
Name = "Batch Change Parameters",
Category = "Scripts/Comp",
Author = "Bryan Ray/MuseVFX",
Version = 2,
Date = {2018, 1, 22},
Description = [[<p>Changes parameters for multiple selected tools simultaneously. The tools need not be of the same type, but only Inputs that they have in common can be changed.</p>

<p>We Suck Less Thread:</p>
https://www.steakunderwater.com/wesuckless/viewtopic.php?f=6&p=13401#p13147]],
Deploy = {
"Scripts/Comp/Batch_Change_Parameters.lua",
},
}


Atom directory:
com.MuseVFX.BatchChangeParameters.zip
(5.35 KiB) Downloaded 12 times

For a detailed description of the script's conversion to Fusion 9, please visit Batch Parameter Changer — A Rewrite for Fusion 9
Last edited by Midgardsormr on Tue Jan 23, 2018 5:36 pm, edited 1 time in total.

SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

### Re: [Submission] Batch Change Parameters script

Hey Bryan,

Thanks!

Please could you fix

Code: Select all

	Deploy = {
"Scripts\Comp\Batch_Change_Parameters.lua",
},

Slashes are the wrong way around...

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 1
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Submission] Batch Change Parameters script

… Are you sure? I used the Atomizer to prep it.

AndrewHazelden
Fusionator
Posts: 1292
Joined: Fri Apr 03, 2015 3:20 pm
Answers: 2
Location: West Dover, Nova Scotia, Canada
Been thanked: 35 times
Contact:

### Re: [Submission] Batch Change Parameters script

Midgardsormr wrote:
Tue Jan 23, 2018 2:27 pm
… Are you sure? I used the Atomizer to prep it.
Are you on Windows 7 or Windows 10?

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 1
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Submission] Batch Change Parameters script

Windows 7.

AndrewHazelden
Fusionator
Posts: 1292
Joined: Fri Apr 03, 2015 3:20 pm
Answers: 2
Location: West Dover, Nova Scotia, Canada
Been thanked: 35 times
Contact:

### Re: [Submission] Batch Change Parameters script

Midgardsormr wrote:
Tue Jan 23, 2018 2:41 pm
Windows 7.
Hi Midgardsormr.

Rumor has it that Reactor is so fast at fixing issues you should try this out right now:

Open the Reactor package manager window once and let it fully load. Then close the view.

Then run the Atomizer tool from the Reactor > Advanced > Atomizer menu. That issue you had is solved already, and you will only be able to save Unix style paths into the Atom file Deploy sections when you hit the "Refresh" button or click the "Save Atom" button on your Windows system.

Give it a try.

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 1
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Submission] Batch Change Parameters script

Done! Thanks for the rapid fix!

SecondMan
Site Admin
Posts: 3415
Joined: Thu Jul 31, 2014 5:31 pm
Answers: 3
Location: Vancouver, Canada
Been thanked: 78 times
Contact:

### Re: [Submission] Batch Change Parameters script

I'd love to see that UI prettified a bit, but this is such an oft-requested script and you've also documented the (re)writing of it so very well, so this is now submitted to Reactor!

Congrats!

Midgardsormr
Fusionator
Posts: 1053
Joined: Wed Nov 26, 2014 8:04 pm
Answers: 1
Location: Los Angeles, CA, USA
Been thanked: 61 times
Contact:

### Re: [Submission] Batch Change Parameters script

Anybody who's a better UI designer than me is welcome to update it again! I was actually reading something Andrew wrote about adding and removing controls from the UI and thinking that would be a better way to go than simply showing and hiding them. That way the three field types could all occupy the same location. I've got some other, meatier projects to work on right now, though.