Programming Blender Addons with Python that rock

Поділитися
Вставка
  • Опубліковано 13 лип 2024
  • In this Python programming tutorial I show how to code Blender addons that rock. I register 2d and 3d drawing callbacks that you can use to draw into the viewport and then use bmesh to create meshes on the fly.
    Join this channel to get access to perks:
    / @jayanam
    See my social profiles here:
    Instagram: / jayanamgames
    Twitter: / jayanamgames
    Facebook: / jayanamgames
    Patreon: / jayanam
    Merch Store: teespring.com/de/stores/jayan...
    Production Music courtesy of Epidemic Sound: www.epidemicsound.com

КОМЕНТАРІ • 17

  •  2 роки тому +2

    This was amazing. Thank you!

  • @makewithmegma
    @makewithmegma 2 роки тому +1

    🔥💕👍

  • @RomboutVersluijs
    @RomboutVersluijs 2 роки тому +1

    Thats nice! The retopo addon is much more advanced, why create something similar?

    • @mirohorvath
      @mirohorvath 2 роки тому

      ... also, Retopo addon is actually going to be rewritten as a core Blender functionality!

  • @PaulGeraskin
    @PaulGeraskin 2 роки тому

    Awesome. Is the code available?

  • @swiveiproduction9192
    @swiveiproduction9192 2 роки тому +1

    Dude, how did you setup vscode for blender, Everytime I use it I always get error squigles

  • @RomboutVersluijs
    @RomboutVersluijs 2 роки тому

    How are ayou able to use raycast without dephsgraph? I was updating an old addon which use raycast to see what kind of mesh was hit, in bl 2.79 this seemed much easier, now we need to use depsgraph for each mesh instance in order to get it. Im just wondering how you are to get past that. Its kinda interesting i can get the same sort of result without it. Im trying to update RigUI addon. i got most of it working only the material picker not, its kinda of a weird setup how thats done.

    • @RomboutVersluijs
      @RomboutVersluijs 2 роки тому

      Ow i commented to soon, i see you also use it. Seeing this, i think i added it badly. I added it per mesh object which is being duplicated on the fly, once it hits then the rest gets deleted. Its kinda of a weird way how the original dev implemented a material picker. I made a simple operator for linking materials.

    • @RomboutVersluijs
      @RomboutVersluijs 2 роки тому

      I doubt i could use this approach. Because he duplicates all meshes it need dephsgraph on each single duplicated mesh i believe. He used the old to_mesh function but that has issues now with 2.93 and up

  • @RomboutVersluijs
    @RomboutVersluijs 2 роки тому

    PS when are you calling get_vertices? i see the function being declared, but i dont see it being called? i only see self.__vertices? Same goes for that appened function, i dont see it being called neither?

    • @RomboutVersluijs
      @RomboutVersluijs 2 роки тому

      Sorry, again i commented to soon. You use that function in a different file. I was looking in that same file.

    • @RomboutVersluijs
      @RomboutVersluijs 2 роки тому

      How are you assigning the function get_vertices to self.points, i didnt see where that was done?

    • @RomboutVersluijs
      @RomboutVersluijs 2 роки тому

      Found it, i was pausing skipping and then forgot you assigned that custom object VertexContainer to self.points thats how points had that function get_vertices() @3:21

    • @JayAnAm
      @JayAnAm  2 роки тому +1

      I guess I will add the code and functionality to JSculpt, will see.