Blender Python Tutorial : An Introduction to Scripting [how to learn python for beginners]

  Рет қаралды 394,946

Darkfall

Darkfall

Күн бұрын

Пікірлер: 456
@KenanProffitt
@KenanProffitt 5 жыл бұрын
Really cool man. Nice work! The community could use more of these types of videos.
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
Thanks Kenan!.. It's nice of you to say so!. I think there are some really good tutorials out there but many of them expect you to have some level of scripting experience. I wanted to be able to show people (like me) who think they could never write an Add-on, that it's actually possible. I never would have thought that my Add-on would be used by so many or even be of any use..
@kashishpatel4543
@kashishpatel4543 Жыл бұрын
please never abandon this series
@DarkfallBlender
@DarkfallBlender Жыл бұрын
What else would you like to see?
@kashishpatel4543
@kashishpatel4543 Жыл бұрын
@@DarkfallBlender something more of automation using python so you know i don't have to copy paste sh*t again and again, and be able to shade multiple objects and tinker them fast, so mostly automation because that's kind of a big power of scripting, also if we can make our own plugins like the gis and stuff, i know that stuff is advanced but wanna do it one day... also, using scripting a lot of people have created art, so it would be fun to have a walkthrough of that too, so we understand automation better I really love your videos btw, scripting in blender doesn't have many tutorials on utube
@cultofape
@cultofape 4 жыл бұрын
This was the first blender python tutorial I´ve watched that didn´t either dumb too much down, or rush things through without explaining what each step does in a good way. Good job!
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey brilliantApe, I am really glad you found it helpful! I am still learning so I may "gloss over" some things every now and again though if I do, feel free to ask me and I will try my best to help.. Or at least point to relevant information 😁.. I have a little collection of scripting videos that are growing, so if you have any ideas or suggestion on what you want to see, I can try to cover it in future videos.. Anyway, thanks again for the comment!, it's great to see these videos are being useful!..
@cultofape
@cultofape 4 жыл бұрын
@@DarkfallBlender Some people might think writing tutorials when you´re still learning is a bad thing, but I disagree. When you´re fresh learning you still value every step of the process and and don´t gloss over things that become second nature to you as you get more advanced. It´s also a great way to repeat what you´ve recently learnt in a structured way. Even the mistake you made with the icon caused you to bring up the icon viewer addon, which I did not now about :).
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Lol yeah I see what you mean.. I just hope I don't mess things up too bad 😅
@mrhertz9940
@mrhertz9940 4 жыл бұрын
I build add-ons and utilities like this in Adobe products for fun, and to make my job less onerous. I actually hadn't even considered creating one for Blender - but as a hobby 3d guy, I think I could do something that would help people. Down the rabbit hole I go, again. So thanks for this. : D
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
I am glad I could help!.. Speeding up our workflow is always worth while 👍
@GemTappX
@GemTappX 3 ай бұрын
There truly is a video to learn anything on KZbin.
@salihozguratik7037
@salihozguratik7037 3 жыл бұрын
This video has opened a new page in my life. Thanks!
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I am glad you found it helpful 🙃👍
@manofwar7428
@manofwar7428 4 жыл бұрын
This is the best beginner tutorial of blender python ever. I like the way of explanation because as compared to another beginner tutorial, you are just awesome !.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
😅 👍 thanks for saying so!. I am still a beginner myself and I am glad you find this video helpful!..
@yurylikhachev4628
@yurylikhachev4628 Ай бұрын
You sounds so soft and kind, it`s calm me down and makes me somehow comfortable.
@raxater
@raxater Жыл бұрын
Splendid tutorial for someone beginning in this sphere of Blender. Thank you so much for this series!
@scorpion666lair
@scorpion666lair 2 жыл бұрын
Soooooooooooo many knowledge bombs in just this vid alone - thankyou so much for putting this out there, keen to blitz through the whole playlist - cheers!
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
I am glad you found it helpful! Thanks for the comment Nathan 👍
@katarinapolakova2894
@katarinapolakova2894 8 ай бұрын
I am really surprised how sophisticated blender is, you can do almost whatever you think of. A possibility to scripting amazed me. Thank you for sharing
@HarvestrX
@HarvestrX 3 ай бұрын
I agree! I moved over from Maya due to cost. The more I learn about Blender, the more I can't believe how great this is and FREE! I didn't hate Maya but sure hate Autodesk's pricing plans! I could only use the free student version for so long lol.
@HarryMcKenzieTV
@HarryMcKenzieTV 2 жыл бұрын
cool thanks for sharing. im a software developer and been going into 3D stuff for a month now. blender is addictive lol
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Glad you found it helpful Harry!.. With your background and experience it should not take you long to master blender 😉
@iantaggart3064
@iantaggart3064 Жыл бұрын
Okay. Already, this one video showed me how to make a quick-add feature for my animations that will really come in handy.
@fyisic
@fyisic 3 жыл бұрын
Was just curious how blender scripting worked. This was an amazing tutorial with the right pace for newbies. Unsure if ill dive deeper, but really informative.
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I was the same when I started (which wasn't all that long ago). I wanted to see if I could automate some things so I didn't have to repeat the same steps when using blender and it turned out to be easier than I thought. After a little while I started to develop the VFX Nodes Add-on.. I think everyone can benefit and utilize python in one way or another depending on what they need. I am glad you have found this video helpful and I appreciate the comment! 👍
@fyisic
@fyisic 3 жыл бұрын
@@DarkfallBlender Why i am interested in scripting in blender is that i it should be great tool using math to make cool looking structures. If you are interested in what i am making you can check out "Shpongle - Behind Closed Eyelids" on my channel and go to 3:40 .. I used vertex points from mesh to make the shapes. I am making same thing for another project but this using thousands of vertex points. Maybe just maybe ill take a dive into it. But have plenty to do as is :P
@josephstark758
@josephstark758 5 жыл бұрын
Please continue scripting tutorials I really need it
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
If you guys find them useful I will certainly continue to make them, just keep in mind I too am still learning 😃👍
@josephstark758
@josephstark758 5 жыл бұрын
@@DarkfallBlender we like them
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
It's good to hear that! Thanks for the comment Joseph!..
@jaredcrown5812
@jaredcrown5812 3 жыл бұрын
@@DarkfallBlender I am About to start learning now, So lets see what I can learn from you :)
@Zimbob2424
@Zimbob2424 11 ай бұрын
hope you made the future video , my script works fine but cannot install it as an addon, so something is missing. strange too because the .py file comes up but nothing shows up when I install it and search for it
@ralexnicholas
@ralexnicholas 4 ай бұрын
Nice and basic. Just the way I like Blender tutorials!!!!!!!!!!! I also love that you provided resources that helped you learn this script. Much love to you Darkfall! ❤
@ev3rlast
@ev3rlast Жыл бұрын
As a beginner with learning Python, this video really helped simplify a lot of different Python concepts in a useful and understanding manner. Thank you!
@DarkfallBlender
@DarkfallBlender Жыл бұрын
I am glad to hear that it helped! 👍
@seanwalker4868
@seanwalker4868 4 жыл бұрын
Great stuff! I did python scripting with earlier versions of Blender and I wish there were good entry point tutorial around like this.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey Sean, thanks for the comment!. I am also pretty new to scripting so it's great to see that you are finding this video useful.
@seanwalker4868
@seanwalker4868 4 жыл бұрын
@@DarkfallBlender I used to develop closed loop gif math-art animations with Java/Processing but switched to python/Blender about 3 years ago. Every time I looked for learning material it seemed there was nothing really out there so I just cobbled together a very basic working understanding from examples on the web. I've watched your tutorial 1 & 2 so far. It's very addon related but that's okay because perhaps I will wnat to do something like that in future. Embedded within it is also a primer to getting going with 2.8, which has change substantially - so much so my 2.7 based code kept blowing up in it. Anyway, I'm going to try learn about properly now. Your material is my starting point. Thanks! What I need to find next is some good theory on manipulating meshes, edges, using creases, mechanics of materials / colouring and driving the tool to generate a scene renders. I especially need to start manipulating existing objects - what I did with the older version was build up all objects from scratch and then tear them down for each still image. :)
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Ah well you have way more experience than I do 😅.. Your project sounds interesting! I wish you the best of luck 👍
@Lubawaandme
@Lubawaandme Жыл бұрын
THANK YOU BRO. WHAT I GET IS BPY IS SENSIBLE TO BLOCKS AND IT WAS MY BASIC BUGS AFTER I'VE MOVE YOUR CODE IN MY B3D. THANK YOU VERY MUCH BRO
@sabbirahmed4989
@sabbirahmed4989 4 жыл бұрын
these videos are extraordinary. you are doing something that not very much of people doing on the community.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
I am glad you are finding these videos helpful! thanks for the comment 👍
@mjmuftah271
@mjmuftah271 2 жыл бұрын
Simple, but strong content 💪 👌 thanks 😊
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Glad you think so! 👍
@fabianesneider4339
@fabianesneider4339 Жыл бұрын
Friend, thanks for this knowledge, you gave me a reason to learn to program in "python" and learn something new
@abhijeetbhagat1165
@abhijeetbhagat1165 2 жыл бұрын
Can I do normal python programing in blender script which Not related to modeling?
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
You can use Python to control or run functions in any context. So not just modelling!.
@ChippWalters
@ChippWalters 4 жыл бұрын
It's great you create these as someone new to scripting because you don't take things for granted. Case in point: your explanation about how to add icons was super-- and even included reference to the icon add-on. Perhaps you should consider creating a paid for course that can be continually updated in small increments as you learn new things. This would give you incentive to continue with the course, plus be a good (if not the ONLY) Blender 2.8 scripting course. Great job!
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Thanks for saying so Chipp!.. I was always hesitant myself to learn Python. I kinda thought it was something beyond me, but after attempting my first add-on it was actually quite fun.. I then wanted to show others that it's actually possible to create your own add-ons and if a beginner like me can do it, then anyone can.. As for creating a paid course, I doubt I am qualified enough for that. I will happily continue this series as long as everyone finds them useful. Again thanks for the Comment Chipp! 👍
@DmitryPekarev
@DmitryPekarev 4 жыл бұрын
Ох, как же я давно хотел заняться этим в Blender! Спасибо тебе за уроки, дружище.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Эй, спасибо за комментарий! Я рад, что вы нашли это полезным 👍
@heimirjosefsson510
@heimirjosefsson510 2 жыл бұрын
I know Python from before but I've been learning Blender now for over a year. Lucky me that Blender uses Python for it's scripting. I hate when software use their own languages (looking at you Maya) instead of common, easy to use scripting languages like Python or Lua. I'm absolutely in love with Blender and I'm looking forward to using my CS knowledge for art. Thank you so much!
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
I agree, why go out of your way to make things harder than necessary. I think blender always tries to keep things simple. Thanks for the comment and good luck with your projects 👍
@mustkhan-l5l
@mustkhan-l5l 7 ай бұрын
Hi, Great tutorial. Question: How can I remove "My First Addon: form my blender? It stays there. Can I remove it form preferences?
@blackonlearn8643
@blackonlearn8643 3 жыл бұрын
hei, iam becoming your subscriber because of this series.. THANKS A LOTT !! i just need one step to get started which i dont know how, and this series does it for me.. 😀
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Hey I am glad to hear that! 👍. It has always been my goal to show people that python and scripting is possible at any skill level. What you create is always unique to what you need and it's great to see the add-ons and scripts that you guys make..
@YAMaLove11
@YAMaLove11 4 жыл бұрын
Wow, it is awesome! Keep it going! We need more of your knowledge, master! You have new subscriber.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
I am far from Master status but I will accept your gracious comment and I appreciate the support 😄👍
@Skycers
@Skycers 5 ай бұрын
Wow, this is cool! I used to think Python was more intimidating.
@rusticagenerica
@rusticagenerica 3 жыл бұрын
Excellent tuto // THANK YOU !!! May God bless you like nobody's praying.
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Glad it was helpful! 👍
@Transcriptor
@Transcriptor Жыл бұрын
Also try template for simple panel, appears in object properties panel
@kevinschilling6813
@kevinschilling6813 Жыл бұрын
Nice video. I couldn't get mine to Sample Text with cube icon. the fps are running and Collection to 246, then that starts over I accidently hit the play button.. I have looked it over several times and can't figure out why the text box and cube done come up..
@iModel-ft6kh
@iModel-ft6kh 4 жыл бұрын
Great tutorial. Just what I was looking for. How to enter a ""remark"" into the code
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
🤔.....😄👍
@ahmedsinger9435
@ahmedsinger9435 2 жыл бұрын
liked before watching 💗
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
🤔 Thanks for the support 😅👍
@DrIlyas-sq7pz
@DrIlyas-sq7pz Жыл бұрын
Thank you, sir. I run the script but nothing happens on the other side. No error is shown. What could be wrong?
@kiran6363
@kiran6363 4 жыл бұрын
Very informative information for a beginner like me. Explained very nicely. Thanks
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Thanks Kiran, Glad it was helpful! 👍
@johnsmith56920
@johnsmith56920 2 жыл бұрын
Great. The cube/CUBE thing worried me a bit but I learned that we are in a case sensitive environment. On to step 2
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Yeah I should have really mentioned that many things are not only case sensitive but also Context Sensitive. So let's say we are writing an add-on for the 3D Viewport or any other editor we need to make sure we are using the correct context.
@Ghalux
@Ghalux 2 жыл бұрын
I can't open the panel in a new tab ( category)
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
It's most likely a spelling error or typo.. double check it is the same as the video and you should find the problem.. Also If you check the error code it should point you to the exact line of code that is broken..
@jesusleguiza77
@jesusleguiza77 Жыл бұрын
Is there some way for make animation key frame morth targets with python? regards
@powersprouter
@powersprouter Жыл бұрын
thank you! I'm looking forward to binging the rest of your playlist :P
@AWSYCREATION
@AWSYCREATION 3 жыл бұрын
Hi, i have a problem.I use blender 2.93.1 .When i click prefences>install the addon not shown up.Any idea how to fix this. It kinda suck i have to copy paste the text whenever i wanna use it.Pls help
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Sure thing. To "finish" the add-on, you of course would like to be able to install it and then never worry about it again.. All you need to do is add some bl_info, specifically we need to add some information about our add-on. This is pretty simple and I did cover it in this video here: kzbin.info/www/bejne/nneQlKx-bb9qjbM
@JamieDunbar
@JamieDunbar 4 жыл бұрын
Really great intro video mate. I've just started learning Python so I can create a few custom buttons to automatically set up my renders. Nothing special, but this was a really easy intro video to get me started. Thanks!
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Thanks for saying so Jaime! I am glad you found it helpful!. Creating scripts to help your workflow is certainly a good idea.. I think a lot of people could utilize python to help them with their workflow but coding seems daunting to some people (I was definitely one of them). Please just remember, I am still new to scripting myself and I may get things wrong.. If you have any questions I would be happy to try and help (or point towards relevant information).. Good luck with your project!..
@JamieDunbar
@JamieDunbar 4 жыл бұрын
@@DarkfallBlender Thanks mate. Made some huge progress today. I've got a script that creates multiple render layers, then sets up some custom render settings. Tomorrow will be tweaking it so the script can detect if the render layers exist, and then change the render settings accordingly. Wouldn't have made it this far without your tutorials. Cheers ;)
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
No problem buddy! I am glad I could help 😄
@tanvirahamedjihad7619
@tanvirahamedjihad7619 3 жыл бұрын
I am new to blender python script . Is this course in python 3 or 2 ? Does this course need any prerequisite ? For me this seems pretty complex but I am interested . I have understanding of C#,c and little knowledge of python 3.
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I think it's Py3.. You won't need any previous experience but it will help if you do..
@brockbrown1629
@brockbrown1629 2 жыл бұрын
I notice you didn't do the init function, and you didn't declare the attributes with self.[attribute] = [thing]. Is this a new idiom for Python 3 or something? I always thought the whole traditional init thing with self.variable for every initialization was kinda chunky.
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
init is certainly still used and I think is the more acceptable way of coding, though Blender does not specifically need an Innit function which is stated in the API i believe.. As for the att I think declaring them in a property group and then using a pointer is tidier but again you certainly can declare them as you said..
@zion6680
@zion6680 2 жыл бұрын
Mate can you make a video on how to possibly make a simple script that'll tie the coordinate stuff in the Bisect tool to a plane that can be re-used to replace/resuse the cutting object/plane as an offset. Not sure if that makes any sense. I'm basically trying to figure out a way to create a cutting function in hopes it'll work with rigid bodies
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Hey Zion, it's not something I have planned. You might find more help in a dedicated forum like : blender.stackexchange.com/ You can post your question, get help with your code or find code already written!
@sameralhanbaly6877
@sameralhanbaly6877 3 жыл бұрын
Thank you for your informative videos. How can I make python script runs automatically when I export Blender file by using game engine add on?
@plasid2
@plasid2 3 жыл бұрын
can you help me, I have tree were all branches are separate object and trunk, I need generate armature were one branch have one bone, do you have any idea how to start?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
It's not something I have experience with.. You could try asking the Stack Exchange Community: blender.stackexchange.com/
@stephen285
@stephen285 Жыл бұрын
Thanks for your video! Lets say I have a new blender project with only the default cube, I want to trigger a custom script - print("cat") - I want a trigger setup to run the minute the cube is rotated by hand in the gui? How do I do that? It must be waiting for the cube to be rotated, doesn't matter which axis, and then run my print("cat") script? Help me Obi jan your my only hope
@alirezakhademi6093
@alirezakhademi6093 Жыл бұрын
that was amazing! thank you brother wish you the best things
@maz4300
@maz4300 3 жыл бұрын
How do you give a character (e.g. a default cube) controls to move up, down, left, right and obviously, jump
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I am not sure I follow... For game Making you would use a Game Engine right?..
@Kuttersaurio
@Kuttersaurio Жыл бұрын
In newer versions we have to change "=" by ":" but only in (bl_category : 'New_Tab') or we have to replace all = with :?
@pavaoakrap5026
@pavaoakrap5026 2 жыл бұрын
Hy there, interesting video and I am actually just starting to learn python and in a sense of blender related stuff....so here s a question.....bl_label, bl_idname and all that stuff...did you just follow templates to get to understand it or what? In one of templates I ve seen same line of order of things, so I m just curious like....did you just write it because its there or....? Trying to get a grip of why those labels need to exist and how did they end up being named the way they are? Its probably all from info line but....damn there s a lot of stuff to rewrite then for each thing we try to make?
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Hey Pavao, So the Blender python API is a great place to start : docs.blender.org/api/current/index.html Specifically the section : docs.blender.org/api/current/info_quickstart.html You can search for pretty much anything there. So yes a little of copying the templates at first but also reading the API helped a lot.
@tymothylim6550
@tymothylim6550 4 жыл бұрын
Wow! Thanks for the effort put into the video. This is helping me with my school project :)
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Glad to hear that! good luck with your work 😄👍
@SwagHyde
@SwagHyde Жыл бұрын
thank you for this video i'm stuck in a project where i'm either forced to do the same boring operation for hours or i learn how to script to make it for me if anyone is curious what my problem is, i made an animation with metaballs but i need it to be cut sharp with a boolean i tried all the solutions you could think of and making it in different ways and etc nothing worked the only solution i have is turning every frame of my animation into a mesh i need to add a new metaball every frame, then use it on my particle system, then turn it into a mesh, then apply the modifier and repeat basically it's really tedious doing it manually and i would learn nothing and it wouldn't be fun i've looked up online and a few people did encounter the same problem where they wanted to apply modifiers to metaball animations but no one has done a script yet so i guess i'll do it
@ZBBBlL
@ZBBBlL 4 жыл бұрын
Had anyone run into this error "'PT_TestPanel' doesn't contain '_PT_' with prefix & suffix"? How do I fix it?
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
You would need to add a name before the PT.. So for example the Name of your Addon.. It should look something like this, ADDONNAME_PT_TestPanel
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
If you see the error code was mentioning that you need a Prefix and Suffix between the PT..
@ZBBBlL
@ZBBBlL 4 жыл бұрын
@@DarkfallBlender thank you! Really didn't expect you to come back and read this comment. You're awesome, man.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
It's no trouble 👍
@VindicatorMC
@VindicatorMC 2 жыл бұрын
Hi admin! I want to make "Search box" akin to "Search menu F3 in Blender". "Search box" is used to find the made objects attached to the character's hand. So what do I have to do? Thank you!
@yvesmolina
@yvesmolina 4 жыл бұрын
I don't know anything about it but I find it very interesting and useful. Thank you
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey and thanks for the comment!.. I also knew nothing about Python or scripting! (even now I am still pretty new) but it becomes easier with practice.. The First version of the VFX nodes was a mess 😂 but as I began to develop it (and learn more about python), it got a little better with each version (or so I hope).. Anyway, I am glad you like it!
@yvesmolina
@yvesmolina 4 жыл бұрын
@@DarkfallBlender I think I will start slowly with the tutorials without putting too much pressure on myself! Good luck with your projects.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
That's a smart way to approach it!.. Thanks and good luck to you too!..
@ericjones7300
@ericjones7300 8 ай бұрын
Not following at 1:50. "Save as" is done twice, first saved as a "template", then "saved as" a second time...for some reason ?
@mastart4971
@mastart4971 Жыл бұрын
is there a course/tutorial that explains everything form the beginning? What is "class" what is "import" or "=" Thank you
@mack7963
@mack7963 4 жыл бұрын
hi, firstly you make it so easy to understand how to script, so you said to suggest ideas, so here goes, i call this Snap to Black, basically its an add on that snaps the cursor to the colour value 0,0,0, the add on would have a load blueprint button that would allow the user to select 3 images, once selected it would load those images onto three separate planes, i believe load image as plane would probably be the best option, the planes would be positioned as you would if you were to do this by hand, once this part has been done the user could then start drawing curves, the options that would be available would be to place a start and end point and have the computer follow the blueprint between the first and last point, a point count would be available or the user could simply follow the blueprint lines manually, a mirror option would also be available, once the desired curves had been drawn a button would allow the curves to be joined creating a mesh, a curve network feature would also be available so that 4 curves could be drawn and the computer would then create a mesh from those 4 curves. i don't know how possible this is or how much work it would take, but i do know that programs like rhino, Modo, 3DS max, Maya or Cinema 4D have a feature like this and it would make using blueprints easier than before......a lot easier. so there you go that's my suggestion for an add on that i think needs to be made.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
😶 That is a suggestion alright 😅
@mack7963
@mack7963 4 жыл бұрын
@@DarkfallBlender good job you didnt ask for any suggestions to make a desktop application using python, kivy and SVG files, then you would have seen a suggestion :)
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
That would be out of my wheelhouse 😄
@sparrowsurya96
@sparrowsurya96 3 жыл бұрын
This is my 1st video from where i starting to learn blender python . I ran the program its giving me error in line def register(): bpy.utils.register_class(TextPanel) Its saying that python script faile, check the message in system console but there is no message nor any type of error is shown , can you tell me why this happening even i used the template its running there good but when i put all stuff of changes into it it shows error in that line
@sparrowsurya96
@sparrowsurya96 3 жыл бұрын
Ayy nvm the problem was that in bl_space i wrote bl-spce ,, and even i do t able to find console , now everything fixed😅
@lvluntold5992
@lvluntold5992 Жыл бұрын
First time writing a script in blender. Got stuck because when you first run the script, i get an error that says line 3 in module object has no attribute pannel. Tried to figure it out but i have no idea what im suppose to do to fix this.
@ade4200
@ade4200 Жыл бұрын
Hi, in the text editor you can use the menu dropdown text/save as, but when you use the menu dropdown text/open, there are no files are shown in the folder you saved in!! Too much searching for the answer, so simple but nothing found!! arg. How to save and load your scripts?
@ade4200
@ade4200 Жыл бұрын
You have to add .txt extension yourself. pff
@omarguzman1112
@omarguzman1112 Жыл бұрын
Awesome video, the only recommendation would be, if you could reference the Blender docs that explain where row.operator etc is. But the video is very helpful!
@trevoncowen9198
@trevoncowen9198 Жыл бұрын
I did this step by step ran it and nothing happened in my 3d viewer. What I do wrong no errors?
@The-Stickman-named-Woody
@The-Stickman-named-Woody 11 ай бұрын
Great video, I'm also a programmer who use godot's GDScript which is base on python to make games but following your tutorial it's seems that this text editor is very powerfull, it can make your own custom add-ons, it can do stuff that shader's or geometry node editor couldn't do. I also noticed that there's not a lot of videos teaching about this so thanks.
@alimoworld8295
@alimoworld8295 3 жыл бұрын
Would you suggest I learn Python from scratch to use in a blender scripting or just learn what I need to know?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I didn't.. I knew exactly nothing about python or coding.. I think it would certainly help if you have had previous knowledge of either Python or scripting in general but that being said you can always learn from scratch (The benefit of which, you don't have any bad habits) You should see what works for you 👍
@lordadamfirst
@lordadamfirst 4 жыл бұрын
How would you change what the text created says?
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey Mada, I am not sure if you have see this video: kzbin.info/www/bejne/anzagZuHjZtmibM but it shows not only how to use custom text but also more options you may find helpful..
@lordadamfirst
@lordadamfirst 4 жыл бұрын
@@DarkfallBlender Thanks! At my work we use SolidWorks macros to automate labeling things for 3D printing. I'm just looking into the possibility of using blender since it's free...
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Well I hope it helps! good luck with your project 👍
@ArminMoghadam
@ArminMoghadam 2 жыл бұрын
How can I add the cube automatically? Like I run the code and cube added to the scene without going to the addon.
@DarkfallBlender
@DarkfallBlender Жыл бұрын
You could add a shortcut?
@으르츄
@으르츄 7 ай бұрын
wow thanks a lot. simple and useful
@Mikuwl
@Mikuwl 4 жыл бұрын
Is there a way to write a script that finds all of the coordinates of an object by name and put it in an array?
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
I would say it's likely that this is possible though my knowledge is rather limited so I am not sure of the process..
@MegaCyberpirate
@MegaCyberpirate 4 жыл бұрын
yes. You can definitely.. First you have to select your object To select an object you have to use the following commands :- obj = bpy.context.window.scene.objects["Cube"] #selection by name or you can simply select the active object by following cmd :- obj = bpy.context.active_object # selection by active object in 3 d view after getting the obj instance you simply call the location method by the following syntax :- obj.location # this will returns a vector of location or obj.location.x #returns x co-ordinates Now you just simply have to store these co ords... Hope this helps..
@enrac
@enrac 4 жыл бұрын
If I did a simple print statement in that text window, how do I execute just that line and where would the output go?
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Print would be displayed in the System Console
@aumhren3480
@aumhren3480 4 жыл бұрын
for system console to work / print, one must execute blender.exe (on win os) from the folder where blender.exe is (blender install folder), in system console / windows terminal (cmd - command prompt; hit [win] key, type 'cmd', hit [enter] - voila, command prompt / terminal) print statements are in this winTerminal have fun aum
@tee-hee9553
@tee-hee9553 Жыл бұрын
I want to ask how can I use blender with C++ as a script ?
@nilupulperera
@nilupulperera 2 жыл бұрын
Really Awesome!! Excellent Tutorial. Thank you very much.
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Hey thanks! Glad you found it helpful 👍
@beauty-health-fitness3031
@beauty-health-fitness3031 3 жыл бұрын
My script is the same as yours but the tab won't appear?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Hey BHF, if the tab is not being displayed, most likely it is because of a minor error. Either a typo in the Operator/Panel or in the Registration Section. When you run the script does it kick up an Error message?. If it does not, you can Check the System Console. (To do that : At the top go to Window > Toggle System Console) If you hit run it should point you to where the problem is.. or If you want you can post your script here: pastebin.com/ Send me the link and I will take a look.
@jamest0m
@jamest0m 3 жыл бұрын
When you add an operator like object.test_add, why do you not need the "bpy.ops" as the full class path?
@hebaramadan4198
@hebaramadan4198 Жыл бұрын
why not showing space type in info panel??
@crashbandit0483
@crashbandit0483 4 жыл бұрын
This was amazing but can you please make a video about like python with rigging, custom properties and drivers cause i would definitely watch that too. :D
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey Crash, thanks for saying so. It's not something I planned on but I wouldn't rule it out.. I am still pretty new to all this so it may take some time.
@rustumsantos7318
@rustumsantos7318 2 жыл бұрын
can you do rename an object using this add on
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
You can change the name of an object with python yes..
@SeanForeman
@SeanForeman 4 жыл бұрын
Awesome tutorial. Straight to the point building the code from scratch. Thank you for this.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey Sean, i am glad you like it! and thanks for the comment 👍
@EdwinDevey
@EdwinDevey 3 жыл бұрын
Hi, Great tutorial. I was really pleased to find this but having copied your example and checked it over the information view shows that the script ran OK but the new tab does not appear. I am using Blender version 2.9. Do you know if anything changed to hide new panels?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Hey Edwin, yeah some things generally change but it's not always obvious. For example, in older versions you may find icon names have now changed. Nodes have been changed and so on. You can check the System Console to see if there are any errors (generally it does a good job in telling you what you need to fix). I have done a video on reading error messages and how to fix them if you have not seen it already you should check it out: kzbin.info/www/bejne/gZjUnqhng8yXrLs If you are still having trouble you can post your script to pastebin.com/ and I wil take look when I get chance.
@EdwinDevey
@EdwinDevey 3 жыл бұрын
@@DarkfallBlender I found your script on your blog page and copied and pasted it and that ran so I compared the two and I couldn't see where I had gone wrong in following your excellent tutorial. No matter, I can now proceed to develop my addon. Great tutorial style - thank you. Also, unbelievably rapid response time.
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
No problem, let's call it a phantom bug lol.. Good luck with your project 👍
@ScminizationMusic
@ScminizationMusic 2 жыл бұрын
5:47 Wait, is there a difference between using " " and ' ' ?
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Good Question.. Sometimes it means nothing and other times it can mean the world!.. Cryptic? 🤔... sure is 😂.. What I mean by that is, In some instances you can use either one and it will be fine. But then in other situations you will need to use one or the other. For example, when defining an Icon in a panel we must use ' '
@gungros9558
@gungros9558 2 жыл бұрын
I wrote a script to animate the solar system , do you think I can turn it into addons
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
If you have wrote a script then you are halfway to creating an add-on.. we simply just need to package it up!.. In the video that follows this one I show how we can turn our script into an add-on ready to be used in Blender you can check it out here: kzbin.info/www/bejne/nneQlKx-bb9qjbM
@butayama7829
@butayama7829 4 жыл бұрын
Searching a solution for a problem I watched your tutorial and enjoyed it. Could you give a hint where I can find an explanation how I can display the content of a Rotation attribute of an object as a Text within a Scene which could be rendered?
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Interesting, So you want to say have an object (lets say a cube), that has been rotated, you want to display the rotation value as a text object for the 3d View? That about right?.. Off the top of my head, It seems like it's possible and we have already looked at adding custom text in the Text Tool Video here: kzbin.info/www/bejne/anzagZuHjZtmibM Though it's not exactly the same, I think it would be very similar...
@butayama7829
@butayama7829 4 жыл бұрын
Following your linked tutorial above, which I like very much, the value of the object attribute is now displayed as text object. I used in the class definition. The next step I want to take is automatically update the text object with the actual value if the attribute object ("Cube") is rotated. I've found a question at blender.stackexchange.com/questions/31814/how-to-drive-text-based-off-of-a-value where a solution from M.O.Z.G using the Add-on "Animation Nodes" is presented. I didn't get the setup running. I haven't found out how to use the attribute object as driver and generate frames with the updated text object for each rotation step. A simple use case would be the display of the value of the angle of two objects in a render sequence. The angle measure tool does something alike (if adjusted after each rotation step by hand), but it does not seem to get rendered.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Seems more complicated than I originally thought.. The Stack Exchange is great.. you Should post your problem and I am sure someone will know a way to get what you want.. If you don't find the answer you are looking for you should try Stack Overflow..
@KeyboardThumper
@KeyboardThumper 2 жыл бұрын
Nice vid, BUT...the tab 'NewTab' doesn't show up in Blender 3.1.2. Any ideas please?
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
It's probably when we use = when defining a property.. In newer versions of blender you need to use : not =
@KeyboardThumper
@KeyboardThumper 2 жыл бұрын
@@DarkfallBlender I'll try it, thanks, and update here!
@yazgamer1733
@yazgamer1733 4 жыл бұрын
I have question my good channel how to make enemy sight system and movement automatically for catching to me and how i make enemy chasing to me and how i can lose it?
@yazgamer1733
@yazgamer1733 4 жыл бұрын
For game engine
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Sorry Yaz, I don't know anything about the Game engine 😥
@yazgamer1733
@yazgamer1733 4 жыл бұрын
@@DarkfallBlender oh ok
@antonioyazzie247
@antonioyazzie247 3 жыл бұрын
question how would you write out for tab not to be included in another script. Like i have the Tabs interface and i want to keep the object adder and shader library off to the side but it keeps getting included in the tab panel.
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
Uhm, What? lol.. So the Object Adder and Shader Library are currently in the Tools Panel on the Right (accessed by pressing N), I am not sure what you mean by tabs interface?...
@amogusussy
@amogusussy 3 жыл бұрын
i'm a newbie and i appreciate your tutorual! great job!
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
I am happy you found this video helpful! Thanks for the comment 👍
@yogita1200
@yogita1200 2 жыл бұрын
After running script, i am not getting my add on object icon in 3D view port
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Hey Yogita, It could be a spelling mistake or typo, you should check your code and make sure it's the same.. Also you can find the problems with help from the System console.. When you run the script what error message do you get?
@rajeshkumaragrawal3682
@rajeshkumaragrawal3682 3 жыл бұрын
Dear Sir, can u make it animated water with Pythone code in blender?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
It's not something I have planned to do but maybe in the future..
@timmenz4909
@timmenz4909 2 жыл бұрын
No Way! I thought I was the only one who first does 2 quotations, then left key, type, then right key lol. #2quotesteam for the win! :D
@Pachupp85
@Pachupp85 4 жыл бұрын
Hi do you think its possibile to make addon similar to tabletpro with buttons on screen. Cause sińce windows ink introduction non of scripts can work properly.
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Hey Rice Art, I would say anything is possible.. Unfortunately, you are asking the wrong guy.. My knowledge is very limited. Have you tried asking the Blender Stack Exchange? I am pretty sure someone there would be able to help you : blender.stackexchange.com/
@SameAsAnyOtherStranger
@SameAsAnyOtherStranger 2 жыл бұрын
It's probably about how the file loaded into the KZbin app but the video is all black. Moving slider makes preview box show video. Funny mountain range graph image shows along slider bar when it is moved. Reopened. All is fine
@DarkfallBlender
@DarkfallBlender 2 жыл бұрын
Strange random bug? KZbin loves to throw them at us 😄Glad it's fixed and I hope you found the video helpful!
@sidneylu7294
@sidneylu7294 9 ай бұрын
Geat job111;I wish i could watch this video 3 days ago, after 3 day search and after i finally work out a function to read psk into blender . but this videos are still quite usefull, and should helpful if I want to make more functions
@jimbotht1091
@jimbotht1091 5 жыл бұрын
Thank very good !! It 's possible to do a input scale for a cube for example ? (sorry for my english )
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
Hey Jim, thanks for the comment!.. I am glad you like it.. As for your question, do you mean scale before adding the Cube or having a properties option in the panel?.. I assume you mean, you want to enter a value of scale, then press the add object button with that specified scale?..
@jimbotht1091
@jimbotht1091 5 жыл бұрын
@@DarkfallBlender "you want to enter a value of scale, then press the add object button with that specified scale", > Yes exactly :)
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
I'm pretty sure it could be done. I know we can add properties to the panel to change the scale after the object has been added, so there should be a way to preset the scale as a prop. I have some Ideas but not an actual solution as of yet.. I can look into it and if I find something helpful I will include it in a video!.. Thanks for the suggestion
@jimbotht1091
@jimbotht1091 5 жыл бұрын
@@DarkfallBlender Cool, thanks !! :)
@DarkfallBlender
@DarkfallBlender 5 жыл бұрын
👍
@CaptainChubbyDuck
@CaptainChubbyDuck 3 жыл бұрын
Hi thanks for the slow and good tutorial :) I was wondering, I encountered an issue where I cant add a third button to the UI. I dont get any compile errors or the like. Whats up with that?
@DarkfallBlender
@DarkfallBlender 3 жыл бұрын
You should be able to add as many buttons as you want so I gotta assume its a minor mistake.. If you get no Error on Run, still Toggle the System Console and see what it says.. If you want you can post your script here: pastebin.com/ and send me the link I can take a quick look..
@eladbitton4145
@eladbitton4145 4 жыл бұрын
Nice video you add to the community alot😄😄
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
😄👍
@aravindmuthu5748
@aravindmuthu5748 3 жыл бұрын
is it possible that I keep my py file in a seperate code editor (like vscode) , because the blender window is too small
@Iazyturt
@Iazyturt 4 жыл бұрын
Thank you so much!!!!! Keep on making more scripting videos!
@DarkfallBlender
@DarkfallBlender 4 жыл бұрын
Thanks for the comment AJ! 👍
Blender is Changing Animation Forever
11:11
Smeaf
Рет қаралды 203 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Supercharging Blender's Drivers with Python
17:03
CG Python
Рет қаралды 7 М.
5 Steps to setup VSCode for Blender Python (on Windows)
12:29
CG Python
Рет қаралды 29 М.
Data Visualization in Blender and Python
33:51
CG Masters
Рет қаралды 72 М.
Getting Started with Scripting in Python
49:24
Blender
Рет қаралды 19 М.
Python Crash Course for Blender!
44:43
Curtis Holt
Рет қаралды 283 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН