2
$\begingroup$

I want to add some custom properties to a bone by an if statement

if len(bpy.data.armatures[armSearch].bones[boneSearch].items()) > 1:                    
    itemCount = len(bpy.data.armatures[armSearch].bones[boneSearch].items()) + 1                                
    bpy.data.armatures[armSearch].bones[boneSearch]["skName"+str(itemCount)] = shapeKeySearch                     

elif len(bpy.data.armatures[armSearch].bones[boneSearch].items()) == 1:                    
    bpy.data.armatures[armSearch].bones[boneSearch]["skName"] = shapeKeySearch

else:
    bpy.data.armatures[armSearch].pose.bones[boneSearch]["skName"] = shapeKeySearch

But when I look for the ID properties in the console there are already tow of them even though I deleted them. How can I delete them completely ?

enter image description here

$\endgroup$

1 Answer 1

2
$\begingroup$

You delete custom ID property by:

del pose_bone["ID_prop_name"]
$\endgroup$
1
  • $\begingroup$ But why are they not shown ? $\endgroup$ Commented Jan 15, 2015 at 19:33

You must log in to answer this question.

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