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$
2
$\begingroup$

You delete custom ID property by:

del pose_bone["ID_prop_name"]
$\endgroup$
  • $\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.