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

    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


You delete custom ID property by:

del pose_bone["ID_prop_name"]
  • $\begingroup$ But why are they not shown ? $\endgroup$ – Tristan Salzmann Jan 15 '15 at 19:33

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.