Creating a Basic Material in Blender Using Python Code

  Рет қаралды 4,169

CG Python

CG Python

Күн бұрын

If you're looking to learn more about scripting in Blender, or want to create basic materials using Python code, then this tutorial is for you! By the end of this tutorial, you'll have learned how to create basic materials in Blender and tweak its base color, metallic, and roughness properties using Python code!
Final code:
gist.github.com/CGArtPython/e...
Orphan Data in Blender: Cause, Effect and Solution #shorts
• Orphan Data in Blender...
How to convert HEX colors to Blender RGB with a Python script
• How to convert HEX col...
How to clean the scene with Python in Blender (with examples)
• How to clean the scene...
Beginner Blender Python Playlist:
• Beginner Blender Pytho...
00:00 - Intro
00:29 - Set up the workspace
00:50 - Go over the steps
02:30 - Create the material
07:10 - Delete Orphan Data
09:16 - Create ico sphere
10:45 - Clear the scene
11:26 - Refactor code into functions
14:19 - Set the Roughness to a random value
15:20 - Outro
Outro Music
Geographer - Easy Shake
#blender #python #scripting

Пікірлер: 18
@felkonx
@felkonx Жыл бұрын
Another very usefull tutorial - Thx
@CGPython
@CGPython Жыл бұрын
Glad it was helpful to you! 😊
@fornesmontalban7
@fornesmontalban7 2 ай бұрын
great work, thanks!
@CGPython
@CGPython 2 ай бұрын
Glad you liked it!
Жыл бұрын
Thank you!
@CGPython
@CGPython Жыл бұрын
You're welcome! 😉
@chilllovez1901
@chilllovez1901 4 ай бұрын
thanks
@luxor9339
@luxor9339 11 ай бұрын
Hi Victor, thank you for your wonderful tuts. What your next playlist do you recommend after viewers complete "Beginner Blender Python Scripting Practice" videos ?
@CGPython
@CGPython 11 ай бұрын
That is awesome! Were there any topics that you feel that you don't have a good grasp on? I would recommend taking a look at the Blender Python Scripting playlist. It has some creative coding and some automation scripts for Blender. Feel free to comment about things you do not fully understand in that playlist. Here is a link to that playlist kzfaq.info/get/bejne/o7CFatKoyNrJnGg.html
@dolmenbretagne9060
@dolmenbretagne9060 Жыл бұрын
Thank you for all your very clear tutorials! Just one question: can we also use python with geometry nodes?
@CGPython
@CGPython Жыл бұрын
Yes, absolutely! Here is some examples of projects I made by creating a geo nodes network with Python www.artstation.com/artwork/d8E1mK www.artstation.com/artwork/aYQe6q www.artstation.com/artwork/L3oVvv
@dolmenbretagne9060
@dolmenbretagne9060 Жыл бұрын
@@CGPython that's wonderful !!!!! but do you have a simple example that we can learn from?
@CGPython
@CGPython Жыл бұрын
@@dolmenbretagne9060 I will post a simple tutorial soon
@dolmenbretagne9060
@dolmenbretagne9060 Жыл бұрын
@@CGPython Thanks a lot !
@maheshshakya5557
@maheshshakya5557 6 ай бұрын
The partially_clean_scene() function also deletes the camera. yikes!
@CGPython
@CGPython 6 ай бұрын
yeah, it deletes all objects
@kordaling
@kordaling 7 ай бұрын
running ; bpy.data.materials.new(name="mymat") by itself does nothing and it confuses me.
@CGPython
@CGPython 6 ай бұрын
After running that command go into the Shading workspace and open the list of materials. You should see "mymat" in the drop-down list. After that you can update that material via Python and assign it to a mesh.
Blender Materials with Python Code: Adding detail with noise
18:47
I PEELED OFF THE CARDBOARD WATERMELON!#asmr
00:56
HAYATAKU はやたく
Рет қаралды 37 МЛН
Trágico final :(
01:00
Juan De Dios Pantoja
Рет қаралды 30 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 17 МЛН
Normal vs Smokers !! 😱😱😱
00:12
Tibo InShape
Рет қаралды 103 МЛН
Shotput: the Story of a Blender Animation
3:31
slephy
Рет қаралды 593
Instant ID Pass in Blender for easy selections!
1:21
Dela Neve
Рет қаралды 73 М.
Using Python classes in Blender
30:48
CG Python
Рет қаралды 5 М.
How to Make Meshes with Python in Blender!
16:26
Curtis Holt
Рет қаралды 44 М.
5 Steps to setup VSCode for Blender Python (on Windows)
12:29
CG Python
Рет қаралды 19 М.
Blender Scripting Guide: Mastering Mesh Editing with Python
11:25
I PEELED OFF THE CARDBOARD WATERMELON!#asmr
00:56
HAYATAKU はやたく
Рет қаралды 37 МЛН