how to separate two objects in blender code example
Example: separate object blender
Select the faces to seperate in edit mode
press 'P' and choose "By selection"
Select the faces to seperate in edit mode
press 'P' and choose "By selection"