How to apply HDRIs with a Blender Python script

  Рет қаралды 1,497

CG Python

CG Python

Күн бұрын

Пікірлер: 12
@CGPython
@CGPython 7 ай бұрын
✉ Subscribe, to see the extended video cg-python.ck.page/6ee3b64cc1 📑 Get the Node names in Python docs.blender.org/api/current/bpy.types.ShaderNode.html
@LucidGeometry
@LucidGeometry 3 ай бұрын
Very nice. You could continue this great script by making it more idiomatic Python. For example, rather than reassigning from and to node variables (only in python is this ever considered acceptable code 😱) simply define a function that takes the from/to nodes and output/input names to connect as parameters. This is a two-birds refactoring: readability and reusability. You can use the same technique with the x-coordinate of the nodes. Hide the increment in a function, call it each time and just assign each new return value when you create the node. Then you can also encapsulate that within a new_node(…) function that takes a node name and calls the increment. I’m coming at this as a Python programmer learning Blender scripting. We’ll meet in the middle! Again, awesome tutorial.
@CGPython
@CGPython 3 ай бұрын
Thanks for the tips!
@thatsdeathshot
@thatsdeathshot 7 ай бұрын
Your tutorials are Amazing! pls make a tutorial on addon preferences
@CGPython
@CGPython 7 ай бұрын
Noted!
@cncpts66
@cncpts66 7 ай бұрын
Hi I really love your tutorials I have been following you for a while and I have set up my VS Code to work with blender on Win, which is one of your tutorials, granted over this time I have become more efficient and familiar with blenders Python API which without your tutorials I would be lost, I think if you use or reference the "import os" way for those of us that use the VS-to-Blend Workflow it would really be helpful, I do understand the "pathlib" home folder directory and scripting in Blender directly is convenient, maybe a reference that there is another way if you using that workflow or a link to alternate code, just for those of us that hang onto your every word. Again thank you for your contribution I am in No way criticizing just trying to give suggestion😁🍺
@CGPython
@CGPython 7 ай бұрын
Thanks for the feedback! I recorded an answer for you here kzbin.info/www/bejne/mIG0ZWpuitOKmZI
@toapyandfriends
@toapyandfriends 7 ай бұрын
Hi! We created the biggest Blender add-on...at over 2GB and 365+ operators. Our flagship feature is an auto GPT script generator w/ auto error fixing that's so well designed anybody can output error-free scripts with it... It processes scripts in a loop, feeding the error message, the script, API and Blender manual lookups back into GPT... Until it has fixed all the errors . Entire functionality comprises over 7000 lines of code, it's well thought out, well designed and basically every Blender programmer's dream...We wanted to know if you'll do a story on it.... We'll send you a free copy so you could try it if you're interested.
@CGPython
@CGPython 7 ай бұрын
That is impressive! I don't really do reviews of paid add-ons on this channel. but thanks for sharing
@amisamaira194
@amisamaira194 6 ай бұрын
Sir, I am having a little trouble with blender python I am working on. How can I reach you?
@CGPython
@CGPython 6 ай бұрын
What is the issue you are having? Can you describe it in a comment?
@amisamaira194
@amisamaira194 6 ай бұрын
@@CGPython I was following one of your older tutorial (kzbin.infoUgkxtV5n9xN7K7LP9BA8FvnmznWx7S_nn_qV?si=KvMuHKWhIEHCTarG) In this you used python to change keyframe interpolation. But in latest version of blender, this doesn't seem to work anymore.
Easily Create Driver Variables with Blender Python
8:12
CG Python
Рет қаралды 962
Why using print() can get you into trouble
16:03
CG Python
Рет қаралды 1,3 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Blender Python: The most confusing part of BMesh
27:38
CG Python
Рет қаралды 3,9 М.
The ULTIMATE GUIDE to HDRI Lighting in Blender!
22:10
The CG Essentials
Рет қаралды 23 М.
Use THIS to Master A.I. Blender Python Scripts
8:04
CG Python
Рет қаралды 4,4 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Should You give up Learning Blender Python?
6:25
CG Python
Рет қаралды 7 М.
Text to 3D is AWESOME now! - AI Tools you need to know
10:51
Olivio Sarikas
Рет қаралды 149 М.
How to learn Blender Python with ChatGPT
12:48
CG Python
Рет қаралды 3,5 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41