Limitation when looping over RenderSettings object?

Hi, I need to transfer the output properties from one file to another. However, C.copy() doesn’t convert the whole context into a dict, only the first level. and I’m failing to find a way to loop over the ‘RenderSettings’ object, other than having a very long list of hardcoded setting names.

Is there a method I’m missing, or is this a current limitation?

You can traverse the RNA. Check scene.render.rna_type.properties Note that it is always advised to have a white/black list of properties in these cases.

[i.identifier for i in C.scene.render.rna_type.properties]

Ah nice, thank you @JeroenBakker! That would help us clean up the code and keep these properties in a single place.