Blender Python API - How to define a Cube

Published: 01 January 1970
on channel: CODE MENTAL
14,882
216

#blender #python #python3d

Define a Cube using Blender Python API vertex by vertex

In this short video, I explore the Blender Python API and learn how to define a cube the hard way, using Python alone and without relying on the pre-existing Blender objects.

DON'T KNOW PYTHON?
Probably the most popular Python Course is a course by Dr. Chuch Severance from the University of Michigan available on Coursera. If I was starting to learn Python today, he would be my first stop:

Python for Everybody
https://coursera.pxf.io/mgJKke

I will get an affiliate commission if you sign up for the course at no cost to you. That's one small way in which you can support the channel.

Timestamps:

0:00 Creating the Hello World Blender Python API: creating an object with a single vertice
1:00 Definition of vertex, edge and face
2:00 Creating a mesh with bpy.data.meshes.new and new_mesh.from_pydata(vertices, edges, faces)
2:42 Creating an object with bpy.data.objects.new(“new_object”, new_mesh) and adding it to the view with bpy.context.view_layer
4:00 Understanding mesh.from_pydata method
5:00 Defining each vertice of a cube
6:43 How to define an edge
7:00 Defining the faces of the cube

BLOG POST AND SOURCE CODE

https://spltech.co.uk/blender-3d%e2%8...

RELATED VIDEOS

Blender Python 3D API
   • Blender Python API - How to define a ...  

CONTACT ME FOR CONSULTING AND ANY OTHER BUSINESS ENQUIRIES

codemental@spltech.co.uk

SUPPORT THE CHANNEL or get MENTORING

  / codemental  

FOLLOW ME

Instagram:   / codemental  
Blog: https://spltech.co.uk/blog/

My Equipment:
If you are curious about what equipment I use and you want to support the channel, feel free to check my affiliate links

Sony Vlog Camera ZV1
US: https://amzn.to/39Xlx7n
UK: https://amzn.to/3fYCEcW

Rode Wireless GO
US: https://amzn.to/2PIrVZq
UK: https://amzn.to/3mGSiuM

LIGHTING - Neewer 3 Packs 530 RGB Led Light with APP Control
US: https://amzn.to/39Ymdcq
UK: https://amzn.to/3uCunzd

Manfrotto Variable Friction Arm with Bracket, Super Clamp
US: https://amzn.to/320MRND
UK: https://amzn.to/322Xuj8

Raspberry PI
US: https://amzn.to/3mwpwgi
UK: https://amzn.to/3wIs27P

Raspberry Pi HQ Camera
US: https://amzn.to/3d4nelc and for lense https://amzn.to/3uBOTjx
UK: https://amzn.to/2PIaGHH

DEEP LEARNING and GAMING PC COMPONENTS:

AMD Ryzen 5900X CPU
US: https://amzn.to/3c1Iubi
UK: https://amzn.to/2KDY0ih

Gigabyte GeForce RTX 3070 EAGLE OC 8GB Graphics Card
The model I bought is unavailable in the US store, so I replaced it with.a similar model from
Gigabyte with slightly higher specs:
US: https://amzn.to/2Y4tu4d
UK: https://amzn.to/394pAia

ASUS ROG Strix X570-E Gaming ATX Motherboard, AMD Socket AM4
US: https://amzn.to/3oa9tnB
UK: https://amzn.to/3iAHtrU

Corsair iCUE H150i PRO XT RGB Liquid CPU Cooler (360mm)
US: https://amzn.to/2LYCFRp
UK: https://amzn.to/2Y1DCuG

Crucial Solid State Drive 1TB
UK: https://amzn.to/2KP797W
US: https://amzn.to/39X8xhf

PC Case - Phanteks Eclipse P600S
US: https://amzn.to/3c3sEgn
UK: https://amzn.to/2LNARL7

Memory - Corsair Vengeance RGB Pro 32GB (2x16GB) DDR4 3600- Black
US Amazon: https://amzn.to/3c1PuVC
UK Amazon: https://amzn.to/2Y5mJzm

Power Supply - CORSAIR CX750F RGB - 750 Watt, Fully Modular
US: https://amzn.to/399oaTz
UK: https://amzn.to/2Md2won


On this page of the site you can watch the video online Blender Python API - How to define a Cube with a duration of hours minute second in good quality, which was uploaded by the user CODE MENTAL 01 January 1970, share the link with friends and acquaintances, this video has already been watched 14,882 times on youtube and it was liked by 216 viewers. Enjoy your viewing!