CG Python
CG Python
  • Видео 116
  • Просмотров 493 296
Blender 4.2 Extensions VS Add-ons Explained
In this video, I'll cover everything you need to know about Blender 4.2 Extensions from a user's perspective and an add-on developer's point of view.
Official Blender Developer videos about Extensions:
Try extensions.blender.org today with the Blender 4.2 Beta #b3d
ruclips.net/user/shortsOfs6-frw1p0
ruclips.net/user/shortskOdDmwZM9_w
Extensions LIVE Q&A ☎️ Blender Today LIVE
ruclips.net/video/PO4UPPs2D1k/видео.html
Просмотров: 2 267

Видео

Create a Simple Rig UI with Blender Python
Просмотров 98621 день назад
In this video, I'll show you how to create a basic rig UI panel similar to what the Rigify Add-on creates.
How to apply HDRIs with a Blender Python script
Просмотров 7072 месяца назад
In this video, you will learn how to apply HDRI image textures using a Blender Python script. We will apply and render a scene using a folder of HDRIs. I will walk you through the process of creating this script from scratch. Join the email list to learn more about Blender Python scripting: cg-python.ck.page/6ee3b64cc1
Why using print() can get you into trouble
Просмотров 9592 месяца назад
In this tutorial, I'll show you how to simplify your coding process by integrating the logging module into your Python scripts and add-ons for Blender. Discover how to effectively debug and track your script's behavior, enhancing your development workflow. Perfect for Blender developers looking to streamline their coding with better logging practices! Blender: How to set up Python console outpu...
Use THIS For Easy Blender Scripting
Просмотров 1,3 тыс.3 месяца назад
There is a better AI Coding assistant than ChatGPT that can speed up the development process of Blender Python script and add-ons. In this video, I would like to show you a demo of it and tell you how you can set it up for yourself. Learn how this advanced tool can transform your coding workflow and enhance your productivity when creating scripts. 5 Steps to setup VSCode for Blender Python (on ...
Use THIS to Master A.I. Blender Python Scripts
Просмотров 2,5 тыс.5 месяцев назад
5 Steps to setup VSCode for Blender Python (on Windows) ruclips.net/video/YUytEtaVrrc/видео.html 5 Steps to setup VSCode for Blender Python (on macOS) ruclips.net/video/_0srGXAzBZE/видео.html 5 Steps to setup VSCode for Blender Python (on Linux) ruclips.net/video/zP0s1i9EXeM/видео.html Visual Studio Code Download code.visualstudio.com/Download Python Download www.python.org/downloads/
How to learn Blender Python with ChatGPT
Просмотров 2,8 тыс.5 месяцев назад
In this video, I go over the top 3 things to do and the top 3 things not to do when using ChatGPT to learn Blender Python. Sign up for the email list here: cg-python.ck.page/e59b10e673 and I'll send you all the prompts I used in this video some extra tips & tricks.
Should You give up Learning Blender Python?
Просмотров 6 тыс.6 месяцев назад
We dive deep into whether learning Python and Blender Python is worth it for 3D creatives amidst AI coding advancements. #Python #chatgpt
I applied 1000 color palettes in 10 minutes with Blender Python
Просмотров 1,7 тыс.6 месяцев назад
In this video, I show a workflow that uses a Blender Python script to brainstorm what color palettes would work with your scene. I take an example scene and apply 1000 color palettes to see what variations the script will generate. Project file on Gumroad cgpython.gumroad.com/l/ubxdx?_gl=1*1wphod0*_ga*MjAwMDA2ODM5Ni4xNjM0NTcxNjY5*_ga_6LJN6D94N6*MTcwNDM5MDgyOC40Ni4wLjE3MDQzOTA4MjguMC4wLjA. Color...
Blender Python: The most confusing part of BMesh
Просмотров 3 тыс.9 месяцев назад
In this video, we will go over potentially one of the more confusing parts of Blender's Bmesh Python API called Loops. We will go over: * What BMesh Loops are * How to use them * How to select an edge loop using BMesh loops * How to work with UVs and vertex colors Blender Python Example: Using the modulo operator (%) ruclips.net/video/d9G5Utf-ixg/видео.html
Package your Python Helper Script as a Blender Add-on
Просмотров 1,7 тыс.10 месяцев назад
Learn how to package your Python helper utility scripts as Blender add-ons in this easy-to-follow tutorial video. Using Curtis Holt's EasyBPY as an example, I'll show you how to improve the user experience of your helper scripts by wrapping them into Blender add-ons, making it easier for others to install and use. Don't miss this chance to make your and others’ Blender scripting journey more ef...
Creating a Mesh from Scratch with Python
Просмотров 7 тыс.10 месяцев назад
Learn to create 3D meshes using Blender's bmesh Python module in this tutorial! Master getting references to vertices, edges, and faces and learn about Python's list comprehension feature. This will be a fast-paced, step-by-step guide for taking your Blender Python skills to the next level. #Blender3D #Bmesh #python Links to the code: Creating a pyramid from scratch using the Bmesh Blender Pyth...
Mesh Editing in Blender with Python: I Wish I'd Learned THIS Sooner
Просмотров 4,8 тыс.11 месяцев назад
Join me in this tutorial as I dive deep into using context managers in Blender for mesh editing with Python's bmesh module. I'll walk you through a hands-on example of transforming code to use a context manager and demonstrate how to effectively debug it in VSCode. By the end, you'll not only gain a solid understanding but also have challenges to test and reinforce your skills. Perfect for thos...
Blender Scripting Guide: Mastering Mesh Editing with Python
Просмотров 9 тыс.11 месяцев назад
Start exploring the power of the BMesh Python module in Blender with this tutorial designed for 3D artists. Understand the essentials of manipulating and editing geometry seamlessly using a Python script. Whether you're a beginner or looking to enhance your Blender scripting skills, this BMesh introduction will provide valuable insights. Start building the foundation for creating advanced 3D mo...
Time Saving Blender Python Workflow
Просмотров 2,9 тыс.Год назад
Time Saving Blender Python Workflow
Level up your Python skills with argument parsing
Просмотров 574Год назад
Level up your Python skills with argument parsing
Supercharging Blender's Drivers with Python
Просмотров 4,9 тыс.Год назад
Supercharging Blender's Drivers with Python
Extending Blender Pie Menus with Custom Operators using Python
Просмотров 2,5 тыс.Год назад
Extending Blender Pie Menus with Custom Operators using Python
Exploring the Pie Menu Template in Blender with Python
Просмотров 3 тыс.Год назад
Exploring the Pie Menu Template in Blender with Python
Easy Python Script to Download Color Palettes
Просмотров 808Год назад
Easy Python Script to Download Color Palettes
Blender Python: How to manipulate the Sky Texture from a script
Просмотров 1,4 тыс.Год назад
Blender Python: How to manipulate the Sky Texture from a script
3D Truchet Tile with Python in Blender (Step-by-Step)
Просмотров 1,9 тыс.Год назад
3D Truchet Tile with Python in Blender (Step-by-Step)
5 Steps to setup VSCode for Blender Python (on Linux)
Просмотров 2,3 тыс.Год назад
5 Steps to setup VSCode for Blender Python (on Linux)
5 Steps to setup VSCode for Blender Python (on macOS)
Просмотров 2,9 тыс.Год назад
5 Steps to setup VSCode for Blender Python (on macOS)
5 Steps to setup VSCode for Blender Python (on Windows)
Просмотров 23 тыс.Год назад
5 Steps to setup VSCode for Blender Python (on Windows)
Blender Python Tip: How to Get the File Path to Your Script
Просмотров 3 тыс.Год назад
Blender Python Tip: How to Get the File Path to Your Script
Automating 360 Turntable Animations With a Python Script in Blender
Просмотров 2,2 тыс.Год назад
Automating 360 Turntable Animations With a Python Script in Blender
Blender Python Tutorial: How to Use Geometry Nodes to Split and Animate Mesh Faces
Просмотров 4 тыс.Год назад
Blender Python Tutorial: How to Use Geometry Nodes to Split and Animate Mesh Faces
Master the Basics of Blender Python for Geo Nodes in Just One Video
Просмотров 14 тыс.Год назад
Master the Basics of Blender Python for Geo Nodes in Just One Video
Blender Python scripting: Creating custom operators from scratch
Просмотров 9 тыс.Год назад
Blender Python scripting: Creating custom operators from scratch

Комментарии

  • @chuckocheret4115
    @chuckocheret4115 2 часа назад

    I could really use a video on how to install 3rd party Python libraries that will work from my blender scripts.

  • @Fredo3871
    @Fredo3871 11 часов назад

    I've been following your videos, which are very instructive for beginners like me. I'm facing a small problem: I've made a python script for an addon that contains a geo nodes operator. I would like my script to mark as an asset the geo nodes when the addon is installed. I've seen the mark_asset() command but I've only made it work on one object. How do I do this for a geo nodes? Thanks for your help.

  • @cartoonforkids-usa725
    @cartoonforkids-usa725 16 часов назад

    can you answer wait for the video or look for other videos on other channels?

  • @cartoonforkids-usa725
    @cartoonforkids-usa725 16 часов назад

    When will your new video that you promised to release come out?

  • @vivektyagi6848
    @vivektyagi6848 2 дня назад

    It finally worked. Wonder what I was doing wrong earlier. Many Many Thanks. Now a request - Could you please show how to add a Folder that has multiple folders with code. Each folder with its own class and utilities. I need to add the folder and Debug on the Press of a button. Could you please help.

  • @CartoonTV-jt5li
    @CartoonTV-jt5li 2 дня назад

    Waiting to see the next one that you mentioned in 8:10

  • @samsungmobiletelefon7376
    @samsungmobiletelefon7376 2 дня назад

    Жду следующего, о котором вы упомянули в 8:10 .

  • @youtubetv1593
    @youtubetv1593 2 дня назад

    Жду следующего, о котором вы упомянули в 8:10 .

  • @click4dylan2
    @click4dylan2 3 дня назад

    literally does not work, bpy is not resolvable. what a waste of time, three different IDE's for the same result

  • @vivektyagi6848
    @vivektyagi6848 3 дня назад

    This was a lot of help. Could you please do a tutorial on say a Blender Add-On that has code distributed in many folders. 1. How to open such a code in Visual Studio Code and 2. Debug the code on a Button Press that executes a certain functionality. The code is distributed through classes residing in their respective folders. Meaning one click of a button can take you through various classes and methods residing separately.

  • @nicolassuarez2933
    @nicolassuarez2933 3 дня назад

    Outstanding, Victor! We already have a solution for this problem. Can we share it with you? Thanks!

  • @Gametime05577
    @Gametime05577 3 дня назад

    Thanks ❤

  • @shouptikdey2089
    @shouptikdey2089 4 дня назад

    Even after installing installing Fake bpy i am getting this error Import "bpy" could not be resolved

  • @guyjanssen1751
    @guyjanssen1751 6 дней назад

    Great tutorial, but, despite following meticulously your 5 steps, I always encounter following attribute error: import bpy obj = bpy.context.object Exception has occurred: AttributeError module 'bpy' has no attribute 'context' File "H:\Stoommachine\Cornish\ThomaShaftProject\Scripting\context.py", line 3, in <module> obj = bpy.context.object ^^^^^^^^^^^ AttributeError: module 'bpy' has no attribute 'context' When executed directly in Blender 4.1, this error does not occur. What went wrong? Thanks in advance Guy

  • @tamataran
    @tamataran 6 дней назад

    This is great. But, is it possible to label the columns to designate what each does, like modifiers, mesh editing, that sort of thing.

  • @nicolassuarez2933
    @nicolassuarez2933 6 дней назад

    Hi Victor, we have a solution for this problem, and your expert opinion would be invaluable. Can we discuss it?

  • @Gametime05577
    @Gametime05577 7 дней назад

    Thanks for making this tutorial ❤

  • @hyekyungchoi
    @hyekyungchoi 8 дней назад

    Hi, thank you for the video. I'm learning a lot from your tutorials. I'm trying to install your building block package. I can't install it my blender 4.2. Can I still install it?

  • @hamedmahrizi9237
    @hamedmahrizi9237 8 дней назад

    how u got the addon tab back in blender 4.2 ?

  • @JonasHerbertson
    @JonasHerbertson 8 дней назад

    Great introduction the basics! Thanks!

  • @Skeindem
    @Skeindem 9 дней назад

    This tutorial was sooo good. It was a great starting point for me and now I've created a whole bunch of automation things and buttons to make work easier. Thank you very much!

  • @genevaspring8974
    @genevaspring8974 10 дней назад

    Great video ! Thanks ! I noticed that when I switched to the 'scripting' layout, only the Python interactive console was visible. The window that usually shows the Python code corresponding to actions in Blender wasn't there. For those is same situation: you can fix it by splitting the Python interactive console window vertically. Then, set the newly created window to 'Info' by selecting it from the menu (click on the 'i' icon).

  • @bardiapirouzy8654
    @bardiapirouzy8654 10 дней назад

    Who makes this ridiculous decisions? All the people who willing to use this 3d software it's about open source and free of any regulations of usage be sure with this decisions Blender Wil miss many of its users and supporters.

    • @CGPython
      @CGPython 9 дней назад

      What part of the Extensions you don't like? There was a public discussion about this devtalk.blender.org/t/2024-05-23-extensions-project/34787 devtalk.blender.org/t/changes-to-add-on-and-themes-bundling-4-2-onwards/34593/200

  • @Gametime05577
    @Gametime05577 10 дней назад

    Thank you so much for making this awesome tutorial for free ❤

    • @CGPython
      @CGPython 9 дней назад

      You're welcome 😊

  • @AnimeEye1
    @AnimeEye1 12 дней назад

    Hello Sir is there any way to use eevee next from 4.2 to earlier version of blender such as 4.0.

    • @AnimeEye1
      @AnimeEye1 12 дней назад

      ruclips.net/video/P1IcaBn3ej0/видео.htmlsi=wlLedmZJeab9DXMM Is there any way we can use this technique in Blender? If it is possible.

  • @binatheis
    @binatheis 13 дней назад

    Can you make a detailed tutorial or informative video about Python Wheels in Blender? For me it is something new and I would like to go deeper, however, there is not much information.

    • @CGPython
      @CGPython 9 дней назад

      Yes, I have that planned

  • @kvdam8826
    @kvdam8826 13 дней назад

    Again a great video. Thanks. Waiting to see the next one that you mentioned in 8:10. 🙂

    • @CGPython
      @CGPython 9 дней назад

      Awesome, thank you! Working on it! 🙂

    • @BlenderBash
      @BlenderBash 3 дня назад

      @@CGPython Patiently waiting for that video. Thanks 😉

  • @arturertel
    @arturertel 16 дней назад

    Hello Victor, Thank you very much for the great content. I'm working on a plugin that accesses the library PIL. Could you give an example of how to get this to work? I always have difficulties when creating Blender addons with an external library. Since I would like to publish my plugin one day, I also have to deal with the legal side of it. If you make a video about it, I would also be grateful. (The link to the video you point to at the end doesn't seem to exist)

    • @CGPython
      @CGPython 14 дней назад

      Glad you liked it! Yes, this is what I plan to cover in the next video (the video that I pointed to). I am currently working on it 🙂 Stay tuned!

  • @hamedazhang1985
    @hamedazhang1985 16 дней назад

    Extension feature is messy

    • @CGPython
      @CGPython 14 дней назад

      Could you share what part you find messy? Is it the UI updates or, the website or something else?

  • @alexanderbicukow399
    @alexanderbicukow399 17 дней назад

    С++ support for extentions?

    • @CGPython
      @CGPython 16 дней назад

      Great question! Unfortunately, Blender does not have a C++ plugin API. You can find the official answer here: developer.blender.org/docs/handbook/new_developers/faq/#can-a-c-plugin-api-be-added That said, you can write a C/C++ lib and create Python bindings for it. Then, create an add-on extension using the Python API and your custom C/C++ Python module. So, you will need to use the Python API to pass the data to the C/C++ part of your add-on extension. There is a Rust example that does what I mentioned. You can speed up geometry processing with Rust from the World Blender Meetup Day 2022 Part 3 (link with timestamp) ruclips.net/video/TJXtio1YDCw/видео.html

    • @alexanderbicukow399
      @alexanderbicukow399 16 дней назад

      @@CGPython thanx god. If it happens, blender will be end

  • @ook_3D
    @ook_3D 17 дней назад

    very straightforwards and informative, thanks. only thing i dont like about this new update, its a bit confusing that theres now a tab for 'Get Extensions' and 'Add-ons', confused me at first 😓

    • @CGPython
      @CGPython 16 дней назад

      Thank you! This was not an easy UI/UX change, but I am confident that with a little time, we will all adapt to it. 💪 I don't know how I would have solved this UI/UX problem differently. Initially, the Add-ons tab was removed and replaced by the Extensions tab, but after feedback from the community, the Blenders devs updated the UI to look how it is now.

  • @biblibop
    @biblibop 18 дней назад

    If I'm using VS Code to write my scripts, how do I use Building Blocks, or are these functions only available as an add-on? Thanks!

    • @CGPython
      @CGPython 17 дней назад

      you can pip install it from here pypi.org/project/bpy-building-blocks/ ruclips.net/video/_irmuKXjhS0/видео.html I do need to do a pass on the code to update it make sure it works in the latest 4.2 release... 🫠

    • @biblibop
      @biblibop 17 дней назад

      @@CGPython Thanks! Your videos are great!

  • @SpencerMagnusson
    @SpencerMagnusson 18 дней назад

    Great overview - really good way of explaining extensions from user vs add-on dev perspectives. I've found it helpful to think of "Extensions" as a wrapper for add-ons and themes. It's adding features on top of the existing components (and extensions is a more familiar term, especially to those who use them in coding IDEs or web browsers). And they plan on supporting more components as extensions, such as node groups or other assets.

    • @CGPython
      @CGPython 17 дней назад

      Thank you!! > I've found it helpful to think of "Extensions" as a wrapper for add-ons and themes yeah, that is a great way to think about it!

  • @richardwilkerson1605
    @richardwilkerson1605 18 дней назад

    Fantastic as always !

  • @lishiavergeer3211
    @lishiavergeer3211 19 дней назад

    I encountered some troubles for which I thought I should reinstall the fake-bpy-module. However, since then I got certain problems. When I create an addon, the program cannot find it. Thereafter, Blender cannot be opened. It says that it cannot create a file when that file already exists and the terminal will be reused by tasks. I think the fake-bpy-module stores the files in the wrong place? It would be amazing if you could help me

    • @CGPython
      @CGPython 17 дней назад

      Hello, Sure! I would need some more info to be able to help. What Blender version are you using? How are you creating your add-on? Can you try to follow this video to create an add-on and try to use VSCode with it ruclips.net/video/Qyy_6N3JV3k/видео.html Note: this ^ add-on will work in Blender 4.1, there were some updates done in 4.2 that changes the process of creating an add-on extension.

  • @Floreum
    @Floreum 19 дней назад

    I'm having an issue where for some reason creating panels will not appear when trying to run script from VSC. I can spawn in a cube and move it just fine, but panels will not run. If I copy the code to Blenders text editor and run it it will work. To make sure the panel script from VSC is working I added "bpy.ops.mesh.primitive_cube_add" and it still spawns in a cube

    • @CGPython
      @CGPython 17 дней назад

      I think you need to convert your add-on into a folder + __init__.py file I explain this here github.com/JacquesLucke/blender_vscode/issues/134#issuecomment-1626898526 let me know if this does not make sense.

    • @Floreum
      @Floreum 17 дней назад

      @@CGPython it actually ended up being something to do with the extension install or something. I've installed Python and the extension in the past but never did anything with it so I reinstalled everything and it started working. Thanks for the help though.

  • @havinthiranv
    @havinthiranv 20 дней назад

    can you make Blender python geo node tutorial for wrapping a object please, something like wrap master. I am trying to learn proceduralism in blender

    • @CGPython
      @CGPython 17 дней назад

      Do you know if wrap master uses any Python? I would guess that it is a pure Geo Nodes node network without any Python.

    • @havinthiranv
      @havinthiranv 17 дней назад

      @@CGPython Is it possible to teach us creating a custom geo nodes with or without python, something like wrap master. pleasee

  • @hyekyungchoi
    @hyekyungchoi 20 дней назад

    Hi, I’m just starting using script editor in blender. I’d like to make a data based 3d animation. I spend some time finding what kind of tool would work. Finally, I’ve arrived here. Your video is amazing. It’s gonna be a huge help for my project. I’m planning to follow your video and figure out how to get my project work. May I ask a question. In your console, I can see suggestions in green letter but I can’t see it in mine. How could I get it?

    • @CGPython
      @CGPython 16 дней назад

      You need to start typing a statement like >>> bpy. and then hit the TAB key

  • @Booma_1002
    @Booma_1002 21 день назад

    Now i can freely express my thoughts with programming in another app. thanks

    • @CGPython
      @CGPython 17 дней назад

      That's so cool! 🎉💖

  • @user-ih5qt6jf5k
    @user-ih5qt6jf5k 22 дня назад

    Hi, congratulations for the videos you post, very useful for beginners like me, I would like to ask you for help if possible, I've been trying for days but I can't solve an override problem if you can take a look at my script I would appreciate it, it's only about twenty lines and only half works. Thank you Gigi

    • @CGPython
      @CGPython 17 дней назад

      Thank you! Can you post it in a comment?

    • @user-ih5qt6jf5k
      @user-ih5qt6jf5k 16 дней назад

      ​@@CGPython sure but I think it's complicated without a scene, I'll try to post it here anyway, I've prepared a zip file with scene and screenshot that I can send you. I'll try to explain what I should do: after dragging some of the assets from the library to the 3dview, I would like to make a script that takes the selected collections and overrides all content, collection, objects, databloks and materials My script works until the first collections override, the second "for loop" should override the objects because otherwise they cannot move, rotate and scale. and I think context problems already arise here... Done without script you should select the colls, right click, Library Override/Make/Selected & Content. all this for the cols, then for the objects then for the data_bloks and finally for the materials, selecting everything each time!! I hope I was clear and that the Google translation didn't cause any disasters Thanks for your help ************************* import bpy print("----------------------------------------------------------------------------------------------------------- ") area = next(area for area in bpy.context.window.screen.areas if area.type == 'OUTLINER') with bpy.context.temp_override( window=bpy.context.window, area=area, region=next(region for region in area.regions if region.type == 'WINDOW'), screen=bpy.context.window.screen ): #over_sel_collections_and_data() def over_sel_collections_and_data(): selected_objects = bpy.context.selected_objects[:] list_assets = [] for col in selected_objects: cleaned_name = col.name.replace('_COL', '') list_assets.append(cleaned_name) bpy.ops.outliner.liboverride_operation(type="OVERRIDE_LIBRARY_CREATE_HIERARCHY", selection_set="SELECTED_AND_CONTENT") meshes = bpy.data.meshes """ for pref in list_assets: print("----prefix-----", pref) for obj in bpy.context.scene.objects: if obj.name.startswith(pref): bpy.ops.ed.lib_id_override_editable_toggle() """ for mesh in meshes: mesh_name = mesh.name if any(mesh_name.startswith(pref) for pref in list_assets): obj = bpy.data.objects.get(mesh_name) bpy.context.view_layer.objects.active = obj bpy.ops.object.make_override_library() return list_assets def main(): # Ottieni le collection selezionate list_assets = over_sel_collections_and_data() if not list_assets: print("Nessuna lista pervenuta.") else: print(f"OK lista pervenuta: {list_assets}") main()

  • @henriqueguazzelli8265
    @henriqueguazzelli8265 23 дня назад

    nice video, you could add the output after running the code and it would be better

    • @CGPython
      @CGPython 22 дня назад

      Thanks for the idea! 💖

  • @GlitchCableYt
    @GlitchCableYt 23 дня назад

    hey where is the place to copy the start script? Thanks! Glitchcable

    • @CGPython
      @CGPython 22 дня назад

      here it is gist.github.com/CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0

    • @GlitchCableYt
      @GlitchCableYt 22 дня назад

      @@CGPython Thank you!!

  • @lishiavergeer3211
    @lishiavergeer3211 23 дня назад

    Hi! Thank you for the tutorial. I have a question. Could I also update my user interface panels without restarting Blender?

    • @CGPython
      @CGPython 22 дня назад

      Hello, Thank you! You should be able to run `Blender: Reload Addons` in the command palette for VSCode

    • @lishiavergeer3211
      @lishiavergeer3211 18 дней назад

      @@CGPython Thank you!

  • @krysidian
    @krysidian 24 дня назад

    This is great! I'd love for this to become a series ^^ I also wondered how you can make the solo icon behave like it does in the actual collection view. With the icon changing depending on the state and being without that grey box border.

    • @CGPython
      @CGPython 22 дня назад

      Great question! I don't know if that is possible through the Python API.

    • @krysidian
      @krysidian 22 дня назад

      @@CGPython I figured it out looking into some addon code! icon = 'SOLO_ON' if bone_collection.is_solo else 'SOLO_OFF' current_row_nested = current_row.row() current_row_nested.prop(bone_collection, 'is_solo', toggle = True, text= '', icon= icon, emboss= False, invert_checkbox = True) This should switch between icons and also remove the "grey button" look

    • @finoriordan1650
      @finoriordan1650 22 дня назад

      @@CGPython current_nested_row.prop(bone_collection, "is_solo", toggle=True text, icon=('SOLO_OFF', 'SOLO_ON')[bone_collection.is_solo], emboss=False, icon_only=True)

    • @CGPython
      @CGPython 17 дней назад

      Thank you for sharing this!! Great to know!! 💖

  • @kidgeorgegreenery
    @kidgeorgegreenery 24 дня назад

    Give me a high five my guy 0:48

  • @user-yj6qh1gp2v
    @user-yj6qh1gp2v 25 дней назад

    cool!

  • @CGPython
    @CGPython 26 дней назад

    Get the extended video here: cg-python.ck.page/4ce30cbed2 Initial Starting Code: gist.github.com/CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0

    • @DJ_Narcan
      @DJ_Narcan 21 день назад

      Hey I could really use your advice. I am dedicated the learning blender python and using vsc. Ive been using blender for a few years so I'm very familiar with it. I followed your tutorial on installing vsc. Everything went perfectly until the end. Vsc won't open blender because of addons (boxcutter etc.) I know you can't tell what the issue is without seeing the code, but I'm just wondering if there are any common issues or fixes for usung addons with vsc. I have followed the troubleshootting steps from the vsc manual. Any tips or general info?

  • @biblibop
    @biblibop 28 дней назад

    Great tutorial! Thanks!

    • @CGPython
      @CGPython 26 дней назад

      You're welcome! ❤️‍🔥

  • @nicolassuarez2933
    @nicolassuarez2933 29 дней назад

    Outstanding!

    • @CGPython
      @CGPython 28 дней назад

      Thank you kindly!

    • @nicolassuarez2933
      @nicolassuarez2933 28 дней назад

      @@CGPython I suppose the next step is animating :) Can we recreate any blender funcionality with bpy? Lets say particles. Thanks!

    • @CGPython
      @CGPython 26 дней назад

      You can use bpy to add the Particle System Simulation like this: import bpy obj = bpy.context.active_object # Add a particle system to the object bpy.ops.object.modifier_add(type='PARTICLE_SYSTEM') # Get the particle system particle_system = obj.particle_systems[0] ps_settings = particle_system.settings # Configure the particle system settings ps_settings.count = 1000 ps_settings.frame_start = 1 ps_settings.frame_end = 200 ps_settings.lifetime = 50 ps_settings.emit_from = 'FACE' ps_settings.render_type = 'HALO'

  • @RomboutVersluijs
    @RomboutVersluijs 29 дней назад

    Was wondering why we use this on bmesh leverl and why not simply run the bevel operator in the active object. What is the difference. Not sure I saw that in the video

    • @CGPython
      @CGPython 25 дней назад

      Great question! Yeah, you are correct that we can also use a bevel op. With bmesh you can chain multiple types of edits and you have more control over the mesh editing process. Also, the Blender devs outline some issues when if you use operators docs.blender.org/api/current/info_gotcha.html#using-operators