how to set BodySetup property "double_sided_geometry" using python?

Hello,

I need some help with a little python syntax problem.
I would like to set “Double Sided Geometry” to “true” for a bunch of static meshes, as can otherwise be done manually in the mesh editor in the Collision section of the asset details.

The python API reference looks like this, but I don’t know what tah tells me and how to write the code.

I tried these and more: (assuming “MeshAsset” contains the asset loaded into memory and leaving out any code around the relevant line)

for MeshAsset in AllMeshAssets:  
	MeshAsset.set_editor_property("double_sided_geometry", True)

for MeshAsset in AllMeshAssets:  
	unreal.BodySetup.double_sided_geometry(True)
	
for MeshAsset in AllMeshAssets:  
	unreal.BodySetup("double_sided_geometry", True)
	
for MeshAsset in AllMeshAssets:  
	unreal.BodySetup.double_sided_geometry(MeshAsset, True)

for MeshAsset in AllMeshAssets:  
	unreal.BodySetup(double_sided_geometry)
	
for MeshAsset in AllMeshAssets:  
	unreal.BodySetup(MeshAsset, double_sided_geometry=True)

Thanks everyone!

I found the solution, but excuse any miss-use of terms in the following:

it looks like I have to first get the BodySetup object ready for the mesh before I can actually use it.

So in the end this worked:

for MeshAsset in AllMeshAssets:
	bodysetup = MeshAsset.get_editor_property('body_setup')
	bodysetup.set_editor_property("double_sided_geometry", True)