I want to unparent an object.
I tried the following code
import bpy selectedList = bpy.context.selected_objects selectedList.removeParent()
However, the following error occurred and the parent could not be removed.
AttributeError: 'Object' object has no attribute 'removeParent' Error: Python script fail, look in the console for now...
How can I make a selected object have no parent?