Thank you so much for pointing out that I should open the interface.
When I changed to open the interface and setting the cfgXX Nodes using the interface, the code worked as expected (after removing stuff that became irrelevant).
I didn’t realize that I could not do that from the camera itself, but needed to be on the interface.