0
$\begingroup$

I created a list using this method:

# assign a list
>>> C.scene["mylist"] = [1, 1, 1, 1, 1, 1]
>>> C.scene['mylist']
<bpy id property array [6]>
# save file, reopen
>>> C.scene['mylist'].to_list()
[1, 1, 1, 1, 1, 1]

But how can I delete it completelyenter image description here?

$\endgroup$
4
$\begingroup$

del C.scene['mylist'] is a standard way of removing keys from dict-like objects in Python. It seems to work here, but I don't know if there are any pitfalls for doing this in Blender. enter image description here

$\endgroup$
  • $\begingroup$ AFAIK that is the recommend way. $\endgroup$ – batFINGER Dec 29 '18 at 14:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.