✉ 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
@LucidGeometry3 ай бұрын
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.
@CGPython3 ай бұрын
Thanks for the tips!
@thatsdeathshot7 ай бұрын
Your tutorials are Amazing! pls make a tutorial on addon preferences
@CGPython7 ай бұрын
Noted!
@cncpts667 ай бұрын
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😁🍺
@CGPython7 ай бұрын
Thanks for the feedback! I recorded an answer for you here kzbin.info/www/bejne/mIG0ZWpuitOKmZI
@toapyandfriends7 ай бұрын
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.
@CGPython7 ай бұрын
That is impressive! I don't really do reviews of paid add-ons on this channel. but thanks for sharing
@amisamaira1946 ай бұрын
Sir, I am having a little trouble with blender python I am working on. How can I reach you?
@CGPython6 ай бұрын
What is the issue you are having? Can you describe it in a comment?
@amisamaira1946 ай бұрын
@@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.