1
$\begingroup$

How to add update function? I tried this its wrong.

pbone = bpy.data.objects[ControleObj].pose.bones[ControleBone]

pbone[ControleName] = min

if "_RNA_UI" not in pbone.keys():
    pbone["_RNA_UI"] = {}

pbone["_RNA_UI"].update({"myControl": {"min":0.0, "max":1.0, "soft_min":0.0, "soft_max":1.0, "update" = FunctionName }})`
$\endgroup$

Your Answer

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

Browse other questions tagged or ask your own question.