checkboxes

I had difficulty understanding how to make the operators into a row or column. Also I hope we learn about checkboxes later. I made a small video about what I did for this exercise and what I still want to learn

https://youtu.be/B1foepye8fA

  • 🤘🏻
1 love
Reply
  • Spencer Magnusson replied

    A few questions in here, let me know if I miss something:

    • Putting operators into a row or column is the same method as with properties. Once you call row() or column() to create a new sublayout, and you call operator() on that new sublayout.
    • Making a toggle for operators: one way is to create two buttons - one with the "bigger" property set, and the other without it set. Then you can edit the text of the buttons so you can tell which is which. Blender does not know what makes an operator "on" or "off," so it's not inherently drawn as a toggle. LoopTools actually displays all the settings for an operator underneath it, so you can set it before running.
    • For the face orientation and on creating checkboxes: you can! You just need to pass the face orientation's property to the layout prop(). Blender will draw that property by default with a checkbox.
    2 loves