I’ve been working with dropdowns for a while now and I’ve never had to de-select anything. If I programmaticly select a new item in the dropdown, the previous item is automatically de-selected. I’m surprised to see that both items are selected in your screengrab so maybe I’m missing something but try to comment out the lines where you de-select the item and see if it works for you.
It’s a bit difficult to put your code to the test with the given excerpt. I’ve found that I get a better response if I can boil the problem down to a small GUI (dropdown and checkbox) running the problematic function so that the code is easily executable for anyone to help. This is useful to help solve particularly sticky problems and it frames it in a way that is easy to post if it still can’t be solved.
Keylight does not key white/grey/black, only colors. There are other plugins that do but I don’t think this particular clip will key very well. You can try it for yourself though.
Keying > Extract
This plugin is native to After Effects. It clips the White/Black of the image into Alpha (like crushing the blacks but the crushed pixels become alpha). Red Giant Primatte (Keying Suite)
This keyer will key Black/White (as well as color) and has some interesting features that keylight does not Composite Brush
This might be your best bet at an automated solution. It’s a new plugin that is producing the best results I’ve seen yet. I don’t know that it will be able to extract her shirt but it’s worth trying. (https://aescripts.com/composite-brush/)
If you can’t get a clean automated solution, the sure-shot method is to rotoscope the target area and treat it on its own layer.
Some contents or functionalities here are not available due to your cookie preferences!
Encoding H.264s at a resolution of 4096×4096 on PC/Windows
Export your video in a highres codec. On macOS you can make an Apple Prores and on PC I would recommend an image sequence like PNG or JPG (depending on the quality of the original image). Export the audio as a separate file if you’re using an image sequence.
Open the media in VirtualDub by clicking on File > Open video file..
Note: If you did not render an image sequence in Step #1, skip to Step #6
Adjust the framerate by clicking on Video > Frame Rate. By default the FPS is set to 10 for image sequences. This default value can be changed in the preferences so you don’t have to change it every time.
You will need to insert the audio by clicking on Audio > Audio from other file… and selecting the audio file you exported in Step #1.
Step #6 A) Click on File > Save as…
In the ‘Save as’ pop-up select ‘.mp4’ from the ‘Save as type’ dropdown menu and then click on the ‘Change’ button.
B) In the pop-up window, select ‘x264 8bit – H.264/MPEG-4 AVC codec’ and click on ‘Configure’ to configure the h264 compression
C) In the new pop-up window under ‘Rate Control’, select ‘Single pass – bitrate based (ABR)’ and set the average bitrate as desired.
Click ‘OK’ on both windows. Change the audio settings to what you need and click the ‘Save’ button
Check your final output for artifacting and tweak the output settings as you see fit.
Hope this helps.