Delete ALL Materials in Blender | Illegal little trick

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • Get it here: mouval.gumroad...

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

  • @nottdiego_
    @nottdiego_ Год назад +15

    This for 2 dollars¿?¿?¿?:
    import bpy
    selected_objects = bpy.context.selected_objects
    for obj in selected_objects:
    obj.data.materials.clear()
    bpy.ops.outliner.orphans_purge(do_local_ids=True, do_linked_ids=True, do_recursive=True)

  • @mythicalscrub356
    @mythicalscrub356 9 месяцев назад +4

    or in py script paste
    import bpy
    for material in bpy.data.materials:
    material.user_clear()
    bpy.data.materials.remove(material)

  • @TMSKINS
    @TMSKINS Год назад +17

    Created this in Chat GPT in 10 min. Same thing you did I am sure :D.

    • @awaiout
      @awaiout Год назад +3

      did it in 5

    • @DamianMathew
      @DamianMathew  Год назад +9

      Illegal little trick

    • @mcxz2838
      @mcxz2838 Год назад +6

      I did it in 1 :)
      import bpy
      # Get the selected objects
      selected_objects = bpy.context.selected_objects
      # Loop through each object
      for obj in selected_objects:
      # Loop through each material slot in the object
      for slot in obj.material_slots:
      # Get the index of the material slot
      index = obj.material_slots.find(slot.name)
      # Remove the material from the slot
      obj.material_slots[index].material = None
      Just saved you $2

    • @DamianMathew
      @DamianMathew  Год назад +9

      @@mcxz2838 Great you did it! Still, I got some life lessons for you 😂
      1. If time is worthless to you, then yes, you saved 2$ 😂
      2. Only because I know how to cook, doesn't mean I won't order food.
      3. Money needs to move. Everyone that tries to save money, will stay broke for life.

    • @traderz13
      @traderz13 Год назад +3

      @@DamianMathew I think you are missing some of the point of blender and it being opensource and hence why the OP might see value in doing this so it can be shared to all for free. Doesnt mean hes dumb or broke.

  • @wieshak
    @wieshak Год назад +6

    Does it work with eevee and cycles or just solid mode?🤔

  • @aliezzartstudio513
    @aliezzartstudio513 Месяц назад +1

    bro really trynna roast people in the comments........ thats not how you maintain a channel bud, you dont gotta be this agressive with your fellow subscribers trust me youll lose them if you dont answer with respect.

    • @DamianMathew
      @DamianMathew  Месяц назад

      @@aliezzartstudio513 I teach, who ever disagrees with my teaching, doesn’t have to watch my videos. I don’t care if I lose all subscribers 🤷‍♂️

  • @RoxRon1
    @RoxRon1 Месяц назад

    Bought it but I can´t seem to install it in blender 4.2.

  • @agungkc
    @agungkc Год назад +3

    Tutorial car camber blender please

    • @DamianMathew
      @DamianMathew  Год назад +1

      interesting

    • @agungkc
      @agungkc Год назад +1

      @Damian Mathew I'm waiting for the tutorial😊

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

      I even already got an idea how to do it well

    • @agungkc
      @agungkc Год назад +1

      @Damian Mathew okay I'll wait for the tutorial

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

      @Damian Mathew When for the tutorial I want to make a car camber

  • @rousseeni
    @rousseeni 11 месяцев назад +1

    you know that nobody will buy this addon?

    • @DamianMathew
      @DamianMathew  11 месяцев назад

      My bank account sais otherwise … maybe you're the only one missing out? :(

    • @rousseeni
      @rousseeni 11 месяцев назад

      @@DamianMathew damn you’re rich 🤣

    • @mythicalscrub356
      @mythicalscrub356 9 месяцев назад

      facts

  • @Proto_Ex
    @Proto_Ex 7 месяцев назад

    Thanks man

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

    blender is free why does addons to pay....

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

      Nothing in this world is free. You think Blender employees work for free? Do you work for free? If so, I’d be glad to give you some work.

    • @kanall103
      @kanall103 9 месяцев назад

      lol@@DamianMathew

    • @kanall103
      @kanall103 9 месяцев назад

      go for broken man@@DamianMathew