Is it possible to make a checkbox for a pose bone or a constraint?

Forum Archive Is it possible to make a checkbox for a pose bone or a constraint?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5344
    mabanimator
    Participant

      Is it possible to make a checkbox for a pose bone or a constraint?

      #23730
      Bassam Kurdali
      Participant

        Yes, the simple way is to just use a boolean property, it should show up as a checkbox automatically.
        Sadly you can’t use ID Props (the custom properties) to define a boolean, so if it isn’t a built-in boolean, you have to add it to the type, e.g.:

        bpy.types.PoseBone.myprop = bpy.props.BoolProperty(default=True)

        and then later expose that property in the UI.

        This has the effect of adding myprop to every posebone, not just one – and can only be done via python.

      Viewing 2 posts - 1 through 2 (of 2 total)
      • The topic ‘Is it possible to make a checkbox for a pose bone or a constraint?’ is closed to new replies.