Creating a Mesh from Scratch with Python

preview_player
Показать описание

Learn to create 3D meshes using Blender's bmesh Python module in this tutorial! Master getting references to vertices, edges, and faces and learn about Python's list comprehension feature. This will be a fast-paced, step-by-step guide for taking your Blender Python skills to the next level. #Blender3D #Bmesh #python

Links to the code:

Creating a pyramid from scratch using the Bmesh Blender Python module

Creating an icosphere using the Bmesh Blender Python module

Get selected verts via list comprehension
Рекомендации по теме
Комментарии
Автор

Python with blender is extremely powerful and let me tell you that you are doing a wonderful job taking all the complex documentation stuff and bringing to the audience such beginner friendly tutorials!

exhilex
Автор

Perfect tutorial. Speed is good, simple enough. Thank you.

Personally, I could do without the music :-) While toying along, I'm pausing all the time, so I'm not enjoying the music anyway.

commonpike
Автор

Great tutorial! I just started to use List Comprehension and it sure simplifies things, but is a little hard to get use to after doing it the old way! LOL! Keep up the great work!

mind_of_a_darkhorse
Автор

Ur the best tutorial vd incould say frfr

mepro
Автор

i really love your content man, its priceless!!
Thank you so much for share it with the comunnity ^-^

williamanim
Автор

Nice! Inwas looking at an API from a 3d foliage provider. They have modules for their own models and I got it working exporting obj files. Now using this to make blender models directly in blender will be way faster. No need for export and than import

RomboutVersluijs
Автор

I was wondering if there would be a speedup if we use bumpy. This is just a small model. I'm thinking of using it to generate foliage. I've got the data in different kind of arrays. It's basically on big list, so I need to first make an array of 3. Wonder if nunoy will be faster

RomboutVersluijs
Автор

Thanks for the new information! Please tell me if the channel has content on programming tools such as bpy.ops.mesh.loopcut_slide or loop tools?

Анастасия-жуг
Автор

Did you get those face indices by actativating the overlay for that. Was wondering how your got those numbers

RomboutVersluijs
Автор

it has a hard time with geo nodes but if i feed it your "helper code" first and it does much better it only had a hard time with the names of the geo nodes so i just put a dict with a list of a bunch in the code before i post to GPT and it does much better

davedumas
Автор

I want to know how to do procedural modeling, such as creating a custom shape and then adjusting the width and height, or shape.

driftwood-fp
Автор

Which video is the follow-up for this one?

RomboutVersluijs
Автор

thanks alot for your beneficial content

wissammmax
Автор

I am writing add ons with geometry node. How knows, how to read object/mesh from node input and how to set object/mesh in node output? I can't find anything

TarasFTR
Автор

have you attempted to play with chat-GPT for writing scripts for blender kinda fun!

davedumas
Автор

how to read a binary file that contains an object and create it to blender ?

dev.ashesh
Автор

I'm confused why you run a sub for loop for those fave_vert_indices. It's basically a list of 4 items. So why do you run another for loop on each. Each item in that vert_ind8ces, only consist of 1 item, a single number. Or are you getting the coordinates of each face vertices. Not sure how the code reads that from only using index. I guess these are not random names, they are actually bmesh names for the attributes

RomboutVersluijs
Автор

I tried to list the meshes in Blender 4.0, but it didn't work. Here is the code I would get:
>>> import bmesh
>>>
>>> bmesh.ops.create_
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: BMeshOpsModule: operator "create_" doesn't exist

I also tried "create" without the underscore, but would get the same result.
I would love to know, how to call the available meshes in bmesh though 😥

somedude
Автор

Hey thanks for the tut u made. I was wonder if you could do me a flavor ? I tried doing some research on how to get the best score 'python bge ', however it's too complicated to make out with how to make use of any of it . Below this is the code i that im using . I have some ideas on how to add a best score in this fashion , Scene 1 save current score, Scene 2 load current score, and Scene 3 load best score . However I was wondering if you could make some sense how to do this ?

import bge
from bge import logic

path = logic.expandPath('//')

def save():
cont =
own = cont.owner
info = own ['Text']
file = open(path+'The_Score.txt', 'w')
file.write(str(info))

def load():
cont =
own = cont.owner
info = own ['Text']
file = open(path+'The_Score.txt', 'r')
line = file.readline()
print(line)
own ['Text'] = int(line)

curlyflipper