0
$\begingroup$

After a call to remove an object:

bpy.data.objects["Plane"].user_clear()

how do I get a refresh so that the object is no longer in my scene? I still see the object in my scene, although the object property name show a red background in the UI.

$\endgroup$

1 Answer 1

1
$\begingroup$

Consult the docs.

AFAICT you are under the wrong impression of what user clear does.

user_clear()

Clear the user count of a data-block so its not saved, on reload the data will be removed

This function is for advanced use only, misuse can crash blender since the user count is used to prevent data being removed when it is used.

reload, being when the blend file is saved, and reloaded.

$\endgroup$
1
  • $\begingroup$ Actually I did realize this, and am looking for an alternative to actually remove(), unlink() or whatever.... $\endgroup$
    – james_t
    Commented Aug 3, 2021 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .