Nice. I'm pretty sure "grid of primitives" is the bpy equivalent of "Hello World". :-)
@brunoarnabar74502 жыл бұрын
What is bpy?
@jamie.goodson2 жыл бұрын
@@brunoarnabar7450 Blender Python. Python is the scripting language you see David using here :)
@jonbob98722 ай бұрын
Loving this, no filler, no pausing.. only as long as it needed to be to demonstrate the techniques. Much appreciated, guys. 👍
@karlduckett3 жыл бұрын
That was aweomse. Thanks David, a sneak preview behind the curtain to how some of the magic is made! Amazing work! 10/10.
@samieb47122 жыл бұрын
after introductions, with 16 seconds of instructions i now know how to make any procedural collection of cubes. that is awesome. and this technique of watching the log for commands is much easier than learning the whole docs. A++++ 100
@unknowndistrict3 жыл бұрын
I was expecting more, but it's enough to make me want to get into some coding in blender.
@karijoart3 жыл бұрын
Hello Kurt, this video is meant as an introduction to Davids work and artistic coding in Blender. It is not meant to be an in depth tutorial. David has now posted another tutorial and resources in the pinned comment, they might be useful to you. All the best with your coding in Blender!
@anoopta65953 жыл бұрын
@@karijoart . pp
@arthatamayusuf88483 жыл бұрын
if you want lo learn about blender python coding, then you might want to consider reading from this book. www.amazon.com/Learning-Blender-Python-Beginners-Understanding-ebook/dp/B07SL5VDCJ and if you need some guide in hiw to apply it, you can also use this book. www.amazon.com/dp/B08SJQXXGV good luck.
@vain3d9733 жыл бұрын
Thank you David Mignot & Blender Daily!
@jeffg46863 жыл бұрын
Thanks for the share. scripting definitely opens up a world of possibilities. Would be interesting to compare / contrast scripting with geometry nodes.
@thebricktop3 жыл бұрын
currently geometry nodes are far less powerfull than few lines of code and far less readable, but probably few updates down the lane and they might achieve what is possible in houdini or similar sphagetti based scripts.
@narratorjay3 жыл бұрын
Saved £50+ by not spending it on a udemy course, I'll see how far I can get with this. Thank you for sharing.
@BlenderDaily3 жыл бұрын
that's cool, thank you!
@TorIvanBoine3 жыл бұрын
How far did you get? :)
@narratorjay3 жыл бұрын
… but it’s not generative, I am investigating Python code that will provide configurations that can then be animated.
@narratorjay3 жыл бұрын
Created the code that animated these videos kzbin.info/www/bejne/fXvdk2ebh7Otnc0
@narratorjay3 жыл бұрын
Oh! KZbin does not post replies that contain an external link. Is that in the T&Cs?
@NicholasRenotte2 жыл бұрын
Unveilling the mysteries of bpy one line at a time. Starts to show what's possible with a couple of lines of Python and Blender. Thanks David!
@TheeRebel2 жыл бұрын
So that’s python?
@BelchamberUs2 жыл бұрын
Super cool, thanks for showcasing!
@ki777iz2 жыл бұрын
This is a fantastic fondue with baguette video! Thank you so much!!!
@obj3d4253 жыл бұрын
This is so surprising and fun
@otaeotay2 жыл бұрын
Just FYI, they removed bpy.context.scene.update() and now I think you would use bpy.context.view_layer.update()
@Akryl3 жыл бұрын
Here you can see again that blender is amazing Nice Video
@hackraise3 жыл бұрын
Awesome !
@pixelwrinkly15283 жыл бұрын
beautiful
@fatihinf54092 жыл бұрын
BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!
@sonu-jangir11 ай бұрын
This video is soooooo much helpful for me... 🎉🎉🎉 ❤❤❤ Thanks a lot...😊
@polilla.asesina25482 жыл бұрын
Still helping after 2 years
@patrickmagnin36543 жыл бұрын
Great art 👍
@vectoralphaSec Жыл бұрын
All of that in only under 100 lines of code? Cool. I might have to get into this later.
@BOSSdesigns3 жыл бұрын
awesome we need more of this
@moabd60132 жыл бұрын
Very concise and clear. Thank you
@naruechatea75172 жыл бұрын
That was great. Thank you.
@spiderloool3 жыл бұрын
i loved it wonderful job
@BlenderDaily3 жыл бұрын
nice to hear from you:)
@greersome2 жыл бұрын
Wow!! One of the best instructional Blender videos I've ever seen and I'VE SEEN A LOT!!
@silverman14383 жыл бұрын
Thank u 🙏🏻 for this wonderful video
@arthatamayusuf88483 жыл бұрын
if you want lo learn about blender python coding, then you might want to consider reading from this book. www.amazon.com/Learning-Blender-Python-Beginners-Understanding-ebook/dp/B07SL5VDCJ and if you need some guide in hiw to apply it, you can also use this book. www.amazon.com/dp/B08SJQXXGV good luck.
@Donatellangelo Жыл бұрын
What made modeling difficult for me is the too much to learn....and then there's sculpting. I'm a "lazy-hard" type person; I'll do things the hard way if doing things the easy way has a barrier to entry. I'll just sculpt (and then retopo) anything with geometry more complex than a table fan for example. This is good since I kinda know python already. I can basically make my own generators with this!
@TimelessGamingSoftware6 ай бұрын
INSPIRED
@3d_nahla2893 жыл бұрын
thanks that's helpful
@joygillmoriah25623 жыл бұрын
This was a real fun and easy to follow walkthrough!
@magnuswootton6181 Жыл бұрын
script modelling in blender, nice! anything involving arrays comes out better just typing it in I think.
@arkemal2 жыл бұрын
very interesting, thanks
@dubpper982 жыл бұрын
very nice! thanks
@quargskpgreene2 жыл бұрын
Wow. I didn’t know Blender could do this.
@Top10-q7m1p2 жыл бұрын
Thank you for this! Super cool video! A+++
@Byemiek2 жыл бұрын
sick
@lechatsportif1242 жыл бұрын
This looks way better than coding it in processing.
@plavali_znaem Жыл бұрын
As a total newbie to artistic coding and the one who haven’t even installed Blender yet: it’s not possible to do it without the Blender software installed, right? No Python modules like this?
@gaurabgain27822 жыл бұрын
5:40 how the materials remained after deleating cubes? my blender version 3.3 it is not working materials get deleated
@SeeRapidly9 ай бұрын
Thanks.Blender, my Python new stage
@bvc51873 жыл бұрын
what's the function of import bpy and import random command at the beginning of script? is that separated files?
@idflood3 жыл бұрын
In python when the interpreter is run not every libraries/package are imported, you have to manually import what is needed. The "bpy" package is made available by blender to get access to blender data and functions. The random module is a default python package but needs to be loaded too, it gives access to pseudo-random number generators: - docs.blender.org/api/blender_python_api_2_59_0/info_overview.html - docs.python.org/3/library/random.html
@ScientObject408 ай бұрын
This is very similar to what Geometry Nodes allows us to do.
Great video, thank you! Could we please get the source code for the last script he showed on the screen?
@nestori1337 Жыл бұрын
Awesome content! Any idea how I could add my own custom mesh/objects, and not just the primitive objects to be generated in a grid with python?
@maxgh85342 жыл бұрын
i am new and having trouble creating and assigning materials directly via the code: bpy.ops.material.new() is the only command I seem to find. I don't find bpy.ops.material.append() as shown in the video. Am I missing something? :/
@srikanthburra26892 жыл бұрын
Can we do coding by formulaes which covers negligible things that looks like 100 percent virtual reality in blender
@procrastinatingcartoonstm51303 жыл бұрын
cool
@hoprem.2 жыл бұрын
nice but, how make the final ?
@BongbokCG2 жыл бұрын
🔥🔥🔥🔥
@stephenkrus2 жыл бұрын
Trés bien... French dude! 💎✨👌
@sasishaan3 жыл бұрын
Hi guys what is this type of art style called? Much thanks!
@stefanmegerle45172 жыл бұрын
How can I randomly assign more than 2 materials to my grid objects? Got a palette of 6 matching colors which shall be randomly assigned to the cubes. 🤔
@heckfyman2 жыл бұрын
make material number = random range 6
@alejo_3d_art3 жыл бұрын
Thank you very much for your tutorial. But I've a question and I hope it is not too dumb... Why when I try to sum instead of multiplying it moves the whole block of cubes in one direction. What I mean is that I expect that 10 * 2.2 is the same as saying 10 + 12. I hope this make sense... and again this is really cool
@idflood3 жыл бұрын
Hi Alejandro. It's not easy to answer without seeing the code but I will try my best. We multiply by 2.2 to increase the spacing because with 1 cubes are stacked since the width is 2 by default. I guess your position is defined like this "x + 12, y + 12". So eventually this offset the whole thing by 12: with x = 0, result 12 with x 10, result 22 Instead if you multiply by 2.2 with x = 0, result 0 with x = 10, result 22 So if you increase your 12 it will continue to offset the whole grid but the cubes will still be stacked. I hope it will help you figure it out, if you have any question feel free to add more comment : )
@jmoneydroid3 жыл бұрын
In the "for loop", the x increments its value from 0 up to but not including 10. So, 0 to 9. He multiplied by 2.2 each time and got 0 * 2.2 = 0 1 * 2.2 = 2.2 2 * 2.2 = 4.4 3 * 2.2 = 6.6 4 * 2.2 = 8.8 5 * 2.2 = 11 6 * 2.2 = 13.2 7 * 2.2 = 15.4 8 * 2.2 = 17.6 9 * 2.2 = 19.8 so the 10 is never used because python is "0-indexed". for x in range(N) cycles x from 0 to N-1 Not sure but you may have just added 12 to each x? That would give you 12 through 21, which would just move all your blocks over by 12, but still touching each other. Hope that helps
@cyborg0093372 жыл бұрын
What program language is in using to generate this art
@gaurabgain27822 жыл бұрын
python
@VincentWuAnimation3 жыл бұрын
Can we use p5.js or JavaScript in blender?
@TheInfinites3 жыл бұрын
Nope. P5js is just a library based off of javascript. And blender's text editor only works with python. But if you know javascript, then you'll find python pretty easy, i guess. But the hard part is remembering the functions that blender uses.
@FabioGopfert3 жыл бұрын
can i batch render those? something like: run script + render (loop this x times).... so i can generate x different pieces
@Mr850man3 жыл бұрын
yes you can
@DanDanceMotion2 жыл бұрын
Miraculous!!
@felixliewhan1461 Жыл бұрын
what language is this? is it python? can we use C# for python?
@plavali_znaem Жыл бұрын
I wonder, how to copy and paste the code for object from info section to the actual console section? ctrl+c ctrl+v doesn't work fpr me. Anyone else with this issue?
@plavali_znaem Жыл бұрын
figured it out! ctrl + F1 + C / ctrl + F1 + V for Macs!
@clown7862 жыл бұрын
Can I download an old version of Blender and use Python on it?
@BlenderDaily2 жыл бұрын
yes, you can
@JiMiDuclos Жыл бұрын
In all human history, from Cleopatre to Napoleon, Nobody ever open blender without deleting the default cube first.