Artistic Coding in Blender by David Mignot

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

That's what I want! Thanks for link and also the comments it contains.

👍︎︎ 2 👤︎︎ u/narratorjay 📅︎︎ Jan 05 2021 🗫︎ replies
Captions
these artworks are created mostly using lines of code in blender they are made by swiss artist david mineo david runs his own web agency and works there as a front-end developer during his free time he utilizes his coding knowledge to create these artworks he has agreed to give us a basic breakdown on how he utilizes lines of code to create art in blender hello everyone my name is david and i will give you a quick introduction of how to create generative art with blender so here we will try to reproduce this image with code so it's a grid of cubes and let's jump in blender and go to this scripting tab so let's delete the default cube and you can see here in the info window that when you do something with the interface it will most of the time show up here as code so here it's object delete but if we create a queue we have another command to create it twist code so let's delete the cube and we need to create a new script and first we need to import bpy it's a package used in most blender scripts so it's bpy objects delete so we need to copy the primitive cube i can copy it paste it here and if i hit play the cube is back so if we look at the command there is multiple attributes like the size and we need to change the location so we'll create a variable for that we can get that we will name it location and redefine it above with this value we will change the x to check if it works so if i hit play again the cube is at a different location so now we can delete that cube and we will create a loop so it's for x in branch then maybe and if we indent it and change the first parameter to the x we can hit play and we create 10 cubes but they are stacked so delete sum and we can create a variable spacing with the value of 2.2 and we multiply the x by z spacing so now when i hit play i have 10 cubes with a small spacing so we can do them and create another loop oops and this time for y and we need to indent that and we will do y multiplied by spacing and if we play now we should have a grid so now we need to move randomly the cubes in zinc so we import random package and we will use random that random multiplied by 2 maybe and here if i hit play the cubes are good so now we can use different shaders for for the cubes so let's just create two of them material and maybe we'll keep it that way and second material it's just blue two and one black so now to ascend the different materials here we can get last created objects with item equal ppy output context object and here to ascend assign the materials we'll create heathers if random that one is smaller than 0.1 maybe we will say item that materials append and here we need to get the material so it will be the py letter the girls and here we need to give the name so it will be material one and if we have else and copy that line paste it here and change the material it will give a different one so let's try and yeah we didn't delete the cube first so and voila so here is a grid recruited so in the example i made it a bit larger and changed the rendering but i will quickly show you another project so the other projects is this one so also entirely created in code so let's open the file and i will quickly so here in we import i created different materials so you can see the project here we create some area of size and we create a grid a system of grids and you can see different codes so i assign different materials let's change location and we make cubes so 200 cubes agreed and you can see that's every all the code for this piece is here so it's a bit more than 100 line of codes and yes that's it hope you enjoy and bye thank you david for the breakdown this is an interesting way of creating art in blender if you would like to see more of david's work there are links in the description thank you for watching and see you in the next video
Info
Channel: Blender Daily
Views: 40,850
Rating: 4.9667282 out of 5
Keywords: Blender daily, blender, blender 3d, tutorial, blender.daily, tips, 3d, how to, david mignot, idflood, Artistic Coding in Blender by David Mignot, artistic coding, coding in blender, coding, scribting blender, scribting, artistic scribting, code, code art, interview, workflow, art style, breakdown, 3d art, blender art, generative art, scribt, generative, art, overview, crypto, crypto art, generative crypto art, cube, abstract, 3d abstract, 3d generative art, abstract art, intro, design, concept, 2.9
Id: r8hqLh_HE08
Channel Id: undefined
Length: 7min 41sec (461 seconds)
Published: Tue Dec 29 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.