I can create a custom property on a bone like this:
bpy.data.objects['rig'].pose.bones['body']['arm_isolate_rotation.L'] = 0.0
However, I am unable to figure out how to set the min and max values for that property.
How is this done?
I can create a custom property on a bone like this:
bpy.data.objects['rig'].pose.bones['body']['arm_isolate_rotation.L'] = 0.0
However, I am unable to figure out how to set the min and max values for that property.
How is this done?
bone = bpy.data.objects["rig"].pose.bones["body"]
bone["arm_isolate_rotation.L"] = 0.0
bone["_RNA_UI"] = {}
bone["_RNA_UI"]["arm_isolate_rotation.L"] = {"min":0.0,
"max": 500.0,
"soft_min":0.0,
"soft_max":500.0}
Got it! Thank you, @Cirno!