Artistic Coding in Blender by David Mignot

Поделиться
HTML-код
  • Опубликовано: 28 сен 2024
  • David Mignot creates art in Blender by using mostly lines of code. In this video he gives us a basic breakdown of his special workflow in Blender.
    You can find David Mignot online here:
    Twitter: / idflood
    Instagram: / idflood
    Website: www.idflood.com/
    Blender Daily Website: blenderdaily.xyz/

Комментарии • 111

  • @darrennew8211
    @darrennew8211 3 года назад +104

    Nice. I'm pretty sure "grid of primitives" is the bpy equivalent of "Hello World". :-)

    • @brunoarnabar7450
      @brunoarnabar7450 2 года назад +3

      What is bpy?

    • @jamie.goodson
      @jamie.goodson 2 года назад +4

      @@brunoarnabar7450 Blender Python. Python is the scripting language you see David using here :)

  • @jonbob9872
    @jonbob9872 2 месяца назад

    Loving this, no filler, no pausing.. only as long as it needed to be to demonstrate the techniques.
    Much appreciated, guys. 👍

  • @karlduckett
    @karlduckett 3 года назад +23

    That was aweomse. Thanks David, a sneak preview behind the curtain to how some of the magic is made! Amazing work! 10/10.

  • @samieb4712
    @samieb4712 2 года назад +31

    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

  • @unknowndistrict
    @unknowndistrict 3 года назад +20

    I was expecting more, but it's enough to make me want to get into some coding in blender.

    • @karijoart
      @karijoart 3 года назад +6

      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!

    • @anoopta6595
      @anoopta6595 3 года назад

      @@karijoart . pp

    • @arthatamayusuf8848
      @arthatamayusuf8848 3 года назад +1

      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.

  • @vain3d973
    @vain3d973 3 года назад +5

    Thank you David Mignot & Blender Daily!

  • @NicholasRenotte
    @NicholasRenotte 2 года назад +6

    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!

    • @TheeRebel
      @TheeRebel 2 года назад

      So that’s python?

  • @narratorjay
    @narratorjay 3 года назад +46

    Saved £50+ by not spending it on a udemy course, I'll see how far I can get with this. Thank you for sharing.

    • @BlenderDaily
      @BlenderDaily  3 года назад +3

      that's cool, thank you!

    • @TorIvanBoine
      @TorIvanBoine 2 года назад

      How far did you get? :)

    • @narratorjay
      @narratorjay 2 года назад +1

      … but it’s not generative, I am investigating Python code that will provide configurations that can then be animated.

    • @narratorjay
      @narratorjay 2 года назад +1

      Created the code that animated these videos ruclips.net/video/GJzb4eRNzgk/видео.html

    • @narratorjay
      @narratorjay 2 года назад

      Oh! RUclips does not post replies that contain an external link. Is that in the T&Cs?

  • @jeffg4686
    @jeffg4686 3 года назад +43

    Thanks for the share. scripting definitely opens up a world of possibilities. Would be interesting to compare / contrast scripting with geometry nodes.

    • @thebricktop
      @thebricktop 3 года назад +6

      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.

  • @ki777iz
    @ki777iz 2 года назад +1

    This is a fantastic fondue with baguette video! Thank you so much!!!

  • @Akryl
    @Akryl 3 года назад +3

    Here you can see again that blender is amazing
    Nice Video

  • @greersome
    @greersome 2 года назад +1

    Wow!! One of the best instructional Blender videos I've ever seen and I'VE SEEN A LOT!!

  • @patrickmagnin3654
    @patrickmagnin3654 3 года назад +4

    Great art 👍

  • @fatihinf5409
    @fatihinf5409 Год назад

    BROTHER, YOU ARE THE BEST!!! You oooh really helped me!! THANK YOU VERY MUCH!

  • @vectoralphaSec
    @vectoralphaSec Год назад

    All of that in only under 100 lines of code? Cool. I might have to get into this later.

  • @otaeotay
    @otaeotay 2 года назад +3

    Just FYI, they removed bpy.context.scene.update() and now I think you would use bpy.context.view_layer.update()

  • @moabd6013
    @moabd6013 2 года назад +1

    Very concise and clear. Thank you

  • @BOSSdesigns
    @BOSSdesigns 3 года назад +1

    awesome we need more of this

  • @polilla.asesina2548
    @polilla.asesina2548 2 года назад

    Still helping after 2 years

  • @silverman1438
    @silverman1438 3 года назад +2

    Thank u 🙏🏻 for this wonderful video

    • @arthatamayusuf8848
      @arthatamayusuf8848 3 года назад +1

      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.

  • @TimelessGamingSoftware
    @TimelessGamingSoftware 5 месяцев назад

    INSPIRED

  • @naruechatea7517
    @naruechatea7517 Год назад

    That was great. Thank you.

  • @spiderloool
    @spiderloool 3 года назад +2

    i loved it wonderful job

  • @ScientObject40
    @ScientObject40 8 месяцев назад

    This is very similar to what Geometry Nodes allows us to do.

  • @quargskpgreene
    @quargskpgreene 2 года назад

    Wow. I didn’t know Blender could do this.

  • @Top10-q7m1p
    @Top10-q7m1p Год назад

    Thank you for this! Super cool video! A+++

  • @magnuswootton6181
    @magnuswootton6181 Год назад

    script modelling in blender, nice! anything involving arrays comes out better just typing it in I think.

  • @arkemal
    @arkemal 2 года назад

    very interesting, thanks

  • @dukeballer11
    @dukeballer11 2 года назад +1

    Great video, thank you! Could we please get the source code for the last script he showed on the screen?

  • @dubpper98
    @dubpper98 2 года назад

    very nice! thanks

  • @gaurabgain2782
    @gaurabgain2782 Год назад

    5:40 how the materials remained after deleating cubes?
    my blender version 3.3 it is not working materials get deleated

  • @Byemiek
    @Byemiek 2 года назад

    sick

  • @srikanthburra2689
    @srikanthburra2689 2 года назад

    Can we do coding by formulaes which covers negligible things that looks like 100 percent virtual reality in blender

  • @procrastinatingcartoonstm5130
    @procrastinatingcartoonstm5130 3 года назад +1

    cool

  • @nestori1337
    @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?

  • @plavali_znaem
    @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?

  • @ttm-2909
    @ttm-2909 Год назад

    A hope for Engineer Artist.❤

    • @riskiadhitama-j6s
      @riskiadhitama-j6s 10 месяцев назад

      #aqua

    • @riskiadhitama-j6s
      @riskiadhitama-j6s 10 месяцев назад

      #marblle

    • @riskiadhitama-j6s
      @riskiadhitama-j6s 10 месяцев назад

      #nano

    • @riskiadhitama-j6s
      @riskiadhitama-j6s 10 месяцев назад

      #gas
      #nos
      #dep
      #bio
      #hai
      #fox
      #mt
      #tm
      #dc
      #uv
      #text
      #font
      #lipo
      #puri
      #tugu
      #kota
      #elf
      #org
      #ctr
      #sim
      #alt
      #nim
      #btn
      #tng
      #atm
      #livin
      #url
      #mc

    • @riskiadhitama-j6s
      @riskiadhitama-j6s 10 месяцев назад

      #udara
      #polusi
      #minyak
      #fisika
      #pajak
      #kimia
      #jaksa
      #puspa
      #serbuk
      #molekul
      #oxigen
      #kumparan

  • @obj3d425
    @obj3d425 3 года назад +4

    This is so surprising and fun

  • @felixliewhan1461
    @felixliewhan1461 Год назад

    what language is this? is it python? can we use C# for python?

  • @JiMiDuclos
    @JiMiDuclos Год назад

    In all human history, from Cleopatre to Napoleon, Nobody ever open blender without deleting the default cube first.

  • @maxgh8534
    @maxgh8534 2 года назад

    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? :/

  • @stefanmegerle4517
    @stefanmegerle4517 2 года назад

    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. 🤔

    • @heckfyman
      @heckfyman 2 года назад +1

      make material number = random range 6

  • @stephendelacruzone
    @stephendelacruzone 2 года назад

    Trés bien... French dude! 💎✨👌

  • @alejo_3d_art
    @alejo_3d_art 3 года назад +2

    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

    • @idflood
      @idflood 3 года назад +5

      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 : )

    • @jmoneydroid
      @jmoneydroid 3 года назад +1

      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

  • @plavali_znaem
    @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
      @plavali_znaem Год назад

      figured it out! ctrl + F1 + C / ctrl + F1 + V for Macs!

  • @sasishaan
    @sasishaan 2 года назад

    Hi guys what is this type of art style called? Much thanks!

  • @BongbokCG
    @BongbokCG 2 года назад

    🔥🔥🔥🔥

  • @clown786
    @clown786 2 года назад

    Can I download an old version of Blender and use Python on it?

  • @cyborg009337
    @cyborg009337 2 года назад

    What program language is in using to generate this art

  • @DanDanceMotion
    @DanDanceMotion Год назад

    Miraculous!!

  • @alexandterfst6532
    @alexandterfst6532 Год назад

    French genius

  • @VincentWuAnimation
    @VincentWuAnimation 3 года назад

    Can we use p5.js or JavaScript in blender?

    • @TheInfinites
      @TheInfinites 2 года назад

      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.

  • @dreamstar6521
    @dreamstar6521 2 года назад

    your projects are at Behance

  • @ReMii912
    @ReMii912 2 года назад

    미쳤다.....

  • @hermitcrypto2787
    @hermitcrypto2787 2 года назад

    Some people are really freaking clever..

  • @chungfeng4765
    @chungfeng4765 2 года назад

    Sae

  • @faramarzzrn
    @faramarzzrn Год назад

    not even close to what the thumbnail is ....

  • @SeeRapidly
    @SeeRapidly 8 месяцев назад

    Thanks.Blender, my Python new stage

  • @ferguslees7994
    @ferguslees7994 9 месяцев назад +1

    import bpy
    import random
    import time
    from mathutils import Vector
    materials = [
    bpy.data.materials[1],
    bpy.data.materials[1],
    bpy.data.materials[0],
    bpy.data.materials[1],
    bpy.data.materials[0],
    bpy.data.materials[1]
    ]
    sizes = [
    1,
    2,
    4,
    ]
    bpy.ops.mesh.primitive_cube_add(size=1.0, location=(0,0,0))
    ob = bpy.context.object
    ob.rotation_mode = 'XYZ'
    obs = []
    sce = bpy.context.scene
    start = time.time()
    def index_exists(ls,i):
    return (0

  • @BelchamberUs
    @BelchamberUs Год назад +2

    Super cool, thanks for showcasing!

  • @bvc5187
    @bvc5187 3 года назад +2

    what's the function of import bpy and import random command at the beginning of script? is that separated files?

    • @idflood
      @idflood 3 года назад +4

      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

  • @0xdjav
    @0xdjav 3 года назад +2

    Awesome !

  • @3d_nahla289
    @3d_nahla289 3 года назад +1

    thanks that's helpful

  • @pixelwrinkly1528
    @pixelwrinkly1528 3 года назад +2

    beautiful

  • @purpl_panda
    @purpl_panda 2 года назад +1

    what the hell!!!!❤❤🤩🤩😮😮

  • @sonu-jangir
    @sonu-jangir 10 месяцев назад

    This video is soooooo much helpful for me...
    🎉🎉🎉
    ❤❤❤
    Thanks a lot...😊

  • @Donatellangelo
    @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!

  • @Gabykk
    @Gabykk 3 года назад +1

    Wow.

  • @hoprem.
    @hoprem. 2 года назад

    nice but, how make the final ?

  • @lechatsportif124
    @lechatsportif124 2 года назад

    This looks way better than coding it in processing.

  • @flaubertjamilrabanalchavez8677
    @flaubertjamilrabanalchavez8677 2 года назад

    Sorry for being too null

  • @FabioGopfert
    @FabioGopfert 3 года назад

    can i batch render those? something like: run script + render (loop this x times)....
    so i can generate x different pieces

  • @HuanLeVuong
    @HuanLeVuong 3 года назад

    This was where I lost 4:26

  • @joygillmoriah2562
    @joygillmoriah2562 3 года назад +4

    This was a real fun and easy to follow walkthrough!

  • @werrutkyupnext
    @werrutkyupnext 2 года назад

    LMAO when I heard his terrible mic quality

  • @robotomato13
    @robotomato13 2 года назад

    oh wow! 2 years of using Blender and I never used the coding feature🥲