That we can have all these modules and then this one file uses everything that I just showed you and actually pulls it all together it’s only four it’s less than four hundred lines long creating a list of images a list of exposure changes in a list of temperature changes because we’re expecting to see some changes when.
The program first starts gets user input for the starting image this is the first step we’re accessing loaded continues looping while the XMP file exists you can see this this one function parses all of the data from the file into the image object and then we add the image to our list so now we have a list of all the data about all the images now we can do whatever.
We want right so we’re gonna say analyze.
Exposure iterate through every single image get the current image and get the next image current image in the next image on my sheet of paper here if.
The exposure is changed between the current and the next image then we creates an exposure change object.
This is where the fun part comes in right we have this one exposure value which is set to zero so this is the value that we’re gonna overwrite tell Photoshop that these two pictures need to change by this much to make them look the exact same if the aperture was changed use our math dot.
Log the current aperture divided by the next aperture divided by log of square root two if the.
ISO was changed the same way using our formulas not only do we have like an exposure change which contains the list of images but we have a list of exposure changes and the white balance is very simple same thing we iterate through and if the white balance is changed just subtract the two and then add the change to the list and then here is.
The function update metadata so now that we have all of this data about all of the increments that need to happen in the offsets it’s all still in memory nothing has been written to the files yet so what do we do we call update metadata look at how awesome this is right updates metadata of every change on every image and look at how short it is because remember we have a.
List of exposure changes get each one update the metadata of exposure 2012 you know this function looks.
Nice and short and I added a lot of comments into it but it’s very powerful because all I have to say now here’s the change update the metadata that’s.
The whole program that I just explained to you my goal was to go in-depth enough.
For you guys to like understand how it’s possible to go from not knowing anything to actually building whatever you want people keep emailing me asking like how can I get good at programming or how can I learn what’s the best way to get ahead and my my opinion is just take on impossible projects which sounds like a bad idea and it might get you frustrated but also like I kind of want to keep developing this and if you guys have any cool.
Ideas about what else we could do because you could anything you.
Can do in Photoshop you can do pretty much through here yes so make sure you guys subscribe.