Bassam Kurdali

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • 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.

      Bassam Kurdali
      Participant

        Not sure what’s going on- maybe there’s a tech support link you can mail?

        Bassam Kurdali
        Participant

          if the name starts with apple you could use (for example):

          for ob in bpy.context.scene.objects if ob.name.startswith(‘apple’): ob.select = True

          or if apple is in the name but not the beginning:

          for ob in bpy.context.scene.objects if ‘apple’ in ob.name: ob.select = True

          Bassam Kurdali
          Participant

            Hi, thanks 🙂 I hope you liked it.
            If you’re already a programmer, you have an easier task! I’d recommend familiarizing yourself with the reference materials (blender does a good job of having it right there in the interface – right clicking on buttons, templates in the text editor, python tooltips, and of course, api docs in the help menu) and then working on a project / scratching an itch – I find it’s easier to learn when having a goal rather than just reading.
            If you don’t know Python yet I’d say Dive into Python (3) is a good book, and available online.

            If you don’t know Blender or any 3D application yet, It’s going to be harder, so it might be good to couple this with learning a bit about general usage etc.

            Some nice areas for a coder to focus in are rigging, automation, procedural modelling or animation, shader creation (OSL not Python here), but also useful are things like Import/Export, and scripts to automate/ease complex tasks, or to extend functionality. Where you focus first depends on your area of interest.

            Finally a bit of math/theory can go a long way, for instance, if you want to work in 3D math/rigging, knowing some linear algebra and how to manipulate transform matrixes is handy – even though blender’s mathutils module provides most of the convenience functions you would need.

            Hope that helped!

          Viewing 4 posts - 1 through 4 (of 4 total)