CG Python
CG Python
  • 119
  • 562 568
TOP 7 issues with your Blender Extension
I have read through a big part of the Blender Extension platform submissions and I’ve discovered several recurring issues that many add-on developers face.
In this video, I’ll be breaking down the most common mistakes made during the submission process and, most importantly, how you can avoid them.
The FASTEST way to get your add-on on Blender's Extensions Platform:
th-cam.com/video/IVLPQYk0wv4/w-d-xo.html
มุมมอง: 365

วีดีโอ

Easily Install 3rd Party Python Modules Into Blender
มุมมอง 937หลายเดือนก่อน
In this video, I discuss how and where to install third-party Python packages using pip. Inspired by @DefaultCube 's video Importing Python Modules and Packages // Blender (no module named...) th-cam.com/video/i2MJWfmnW6o/w-d-xo.html
The FASTEST way to get your add-on on Blender's Extensions Platform
มุมมอง 9202 หลายเดือนก่อน
In this video, I'll walk you through the essential steps of transforming a legacy Blender add-on into a modern Blender extension. Video about Relative Imports [coming soon] Running Blender from the Command Line on Windows th-cam.com/video/JJ54OfiWlf8/w-d-xo.html Installing stand alone Python interpreter th-cam.com/video/YUytEtaVrrc/w-d-xo.html
Blender 4.2 Extensions VS Add-ons Explained
มุมมอง 3.7K3 หลายเดือนก่อน
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 th-cam.com/users/shortsOfs6-frw1p0 th-cam.com/users/shortskOdDmwZM9_w Extensions LIVE Q&A ☎️ Blender Today LIVE th-cam.com/video/PO...
Create a Simple Rig UI with Blender Python
มุมมอง 1.9K3 หลายเดือนก่อน
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
มุมมอง 1.2K4 หลายเดือนก่อน
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
มุมมอง 1.2K5 หลายเดือนก่อน
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.6K6 หลายเดือนก่อน
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
มุมมอง 3.5K7 หลายเดือนก่อน
5 Steps to setup VSCode for Blender Python (on Windows) th-cam.com/video/YUytEtaVrrc/w-d-xo.html 5 Steps to setup VSCode for Blender Python (on macOS) th-cam.com/video/_0srGXAzBZE/w-d-xo.html 5 Steps to setup VSCode for Blender Python (on Linux) th-cam.com/video/zP0s1i9EXeM/w-d-xo.html Visual Studio Code Download code.visualstudio.com/Download Python Download www.python.org/downloads/
How to learn Blender Python with ChatGPT
มุมมอง 3.2K8 หลายเดือนก่อน
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?
มุมมอง 6K9 หลายเดือนก่อน
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.9K9 หลายเดือนก่อน
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.6K11 หลายเดือนก่อน
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 (%) th-cam.com/video/d9G5Utf-ixg/w-d-xo.html
Package your Python Helper Script as a Blender Add-on
มุมมอง 2.2Kปีที่แล้ว
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
มุมมอง 8Kปีที่แล้ว
Creating a Mesh from Scratch with Python
Mesh Editing in Blender with Python: I Wish I'd Learned THIS Sooner
มุมมอง 5Kปีที่แล้ว
Mesh Editing in Blender with Python: I Wish I'd Learned THIS Sooner
Blender Scripting Guide: Mastering Mesh Editing with Python
มุมมอง 11Kปีที่แล้ว
Blender Scripting Guide: Mastering Mesh Editing with Python
Time Saving Blender Python Workflow
มุมมอง 3.2Kปีที่แล้ว
Time Saving Blender Python Workflow
Level up your Python skills with argument parsing
มุมมอง 618ปีที่แล้ว
Level up your Python skills with argument parsing
Supercharging Blender's Drivers with Python
มุมมอง 6Kปีที่แล้ว
Supercharging Blender's Drivers with Python
Extending Blender Pie Menus with Custom Operators using Python
มุมมอง 2.9Kปีที่แล้ว
Extending Blender Pie Menus with Custom Operators using Python
Exploring the Pie Menu Template in Blender with Python
มุมมอง 3.3Kปีที่แล้ว
Exploring the Pie Menu Template in Blender with Python
Easy Python Script to Download Color Palettes
มุมมอง 870ปีที่แล้ว
Easy Python Script to Download Color Palettes
Blender Python: How to manipulate the Sky Texture from a script
มุมมอง 1.6Kปีที่แล้ว
Blender Python: How to manipulate the Sky Texture from a script
3D Truchet Tile with Python in Blender (Step-by-Step)
มุมมอง 2.1Kปีที่แล้ว
3D Truchet Tile with Python in Blender (Step-by-Step)
5 Steps to setup VSCode for Blender Python (on Linux)
มุมมอง 2.6Kปีที่แล้ว
5 Steps to setup VSCode for Blender Python (on Linux)
5 Steps to setup VSCode for Blender Python (on macOS)
มุมมอง 3.3Kปีที่แล้ว
5 Steps to setup VSCode for Blender Python (on macOS)
5 Steps to setup VSCode for Blender Python (on Windows)
มุมมอง 27Kปีที่แล้ว
5 Steps to setup VSCode for Blender Python (on Windows)
Blender Python Tip: How to Get the File Path to Your Script
มุมมอง 3.4Kปีที่แล้ว
Blender Python Tip: How to Get the File Path to Your Script
Automating 360 Turntable Animations With a Python Script in Blender
มุมมอง 2.5Kปีที่แล้ว
Automating 360 Turntable Animations With a Python Script in Blender

ความคิดเห็น

  • @harshpal7097
    @harshpal7097 วันที่ผ่านมา

    would it be possible to select the center most edge after beveling automatically?? it would be super useful for making seams

  • @WorkInProgress-vg2ws
    @WorkInProgress-vg2ws 5 วันที่ผ่านมา

    Hello. Thank you very much for this video. Is it normal using VSCode for Blender is considerably slower than just Blender Scripting? I use Blender 3.6.14 and just generating 300 objects takes some minutes when using VSCode, somtimes even crash, and only a few second when using directly the built in scripting interface of Blender.

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      That is an interesting observation. I have not noticed this. Do you have a lot of prints in the code?

  • @mehdiip
    @mehdiip 6 วันที่ผ่านมา

    thanks 🙂

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      You're welcome! 🙂

  • @GameDevGeeks
    @GameDevGeeks 6 วันที่ผ่านมา

    Hi! I found your channel a while ago on another machine and I found it again on my own machine and my own account. awesome videos, btw do you have a course somewhere (Udemy maybe?) for Blender Add-on development that I can take?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Hey, Thanks! I don't have a course, yet. Currently working on one for Blender Python beginners.

  • @camppillow
    @camppillow 10 วันที่ผ่านมา

    Does anyone know how to assign one material to multiple meshes?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      You just need to get a reference to a mesh object and assign Let's say that you have added two plane to your scene called 'Plane' and 'Plane.001' and you have a material called 'Material' to assign that material to both meshes you need the following code mat = bpy.data.materials['MyMaterial'] mesh_obj1 = bpy.data.objects['Plane'] mesh_obj2 = bpy.data.objects['Plane.001'] mesh_obj1.data.materials.append(mat) mesh_obj2.data.materials.append(mat)

  • @_elevated_
    @_elevated_ 10 วันที่ผ่านมา

    I highly encourage any to use python virtual environments (venv) and then activating it for isololated, version-controllable environments at the minimum. Some other dev tools may be more useful as well.

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      I 💯 agree! Virtual environments are a must-have tool in any Python developer's toolbox! But this is a relatively advanced concept for people starting out.

  • @felkonx
    @felkonx 11 วันที่ผ่านมา

    This did help - but how do I bevel only one edge e.g. with index = 11?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      I had an example of beveling a single edge gist.github.com/CGArtPython/bc10b8a9b6e4934458bb664d8f45f1e1

  • @JayeshSarvaiya
    @JayeshSarvaiya 12 วันที่ผ่านมา

    Hi, I have been following your tutorials from long, they are great. I wanted to understand... 1. Which is more easy or beneficial creating things directly with Geometry nodes? or using Python scripts to make geometry nodes? 2. Can we create every geometry node with Python? or are there limitations? It yes, then isn't it better to create Geometry nodes directly? as they as visual way of programming? Rather that coding them in Python and then using them? I really wanted to understand if Python based Geometry nodes helps something extra... I tried to search answers on internet but in vein. Thank you.

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Great questions! So, if you want to create geo nodes/procedural meshes, you should be using geo nodes directly. There are a number of use cases for doing this with Python. For example, you want to improve the workflows around geo nodes and create scripts and add-ons. There scripts can do bulck changes to geo nodes, or add-ons that make changes to a a selected node without you having to do the work by hand. You can also generate node networks for fun with Python. (that is probably a small number of people ) > Can we create every geometry node with Python? yes, you can (or at least I have not found a node I had issues with)

    • @JayeshSarvaiya
      @JayeshSarvaiya 2 วันที่ผ่านมา

      @@CGPython Thank you, great insight in to the topic... !👍

  • @JayeshSarvaiya
    @JayeshSarvaiya 12 วันที่ผ่านมา

    Hi, I have been following your tutorials from long, they are great. I wanted to understand... 1. Which is more easy or beneficial creating things directly with Geometry nodes? or using Python scripts to make geometry nodes? 2. Can we create every geometry node with Python? or are there limitations? It yes, then isn't it better to create Geometry nodes directly? as they as visual way of programming? Rather that coding them in Python and then using them? I really wanted to understand if Python based Geometry nodes helps something extra... I tried to search answers on internet but in vein. Thank you.

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Great questions! So, if you want to create geo nodes/procedural meshes, you should be using geo nodes directly. There are a number of use cases for doing this with Python. For example, you want to improve the workflows around geo nodes and create scripts and add-ons. There scripts can do bulck changes to geo nodes, or add-ons that make changes to a a selected node without you having to do the work by hand. You can also generate node networks for fun with Python. (that is probably a small number of people ) > Can we create every geometry node with Python? yes, you can (or at least I have not found a node I had issues with)

  • @vxqtw4531
    @vxqtw4531 13 วันที่ผ่านมา

    Could you do a video about qt, pyside or anything else working with blender? It would be very useful to know how to create external tool, custom UI, etc... and make it able to interact with blender. A simple example can be an external qt ui interface with a delete / add cube buttons that work inside blender... 🔥

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Great suggestion! I know that the Tech-Artists.Org community have created a amazing add-on to help with that github.com/techartorg/bqt

  • @felkonx
    @felkonx 17 วันที่ผ่านมา

    The background music is very distracting :(

    • @CGPython
      @CGPython 13 วันที่ผ่านมา

      yeah, Thanks for the feedback! I have stopped adding it in future videos

  • @felkonx
    @felkonx 17 วันที่ผ่านมา

    Thx you - this helped a lot !

    • @CGPython
      @CGPython 13 วันที่ผ่านมา

      Glad it helped!

  • @adapena7050
    @adapena7050 19 วันที่ผ่านมา

    Great stuff! thanks!!! I got an error on line 395 had to reassign "AgX - Very High Contrast" instead of "Very High Contrast" then it runs great. Working with Blender 4.2 now

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Yeah, thanks for the fix!

  • @HorseyTime
    @HorseyTime 22 วันที่ผ่านมา

    I love this video but your audio needs some work

    • @CGPython
      @CGPython 21 วันที่ผ่านมา

      Thanks!

  • @CGPython
    @CGPython 22 วันที่ผ่านมา

    Sign up to my email list to get the link to the extended video: cg-python.ck.page/0434dbbefe 📬

    • @studioromanrec
      @studioromanrec 22 วันที่ผ่านมา

      Hello, nothing arrives in my email to confirm the subscription.

    • @CGPython
      @CGPython 21 วันที่ผ่านมา

      @@studioromanrec hmm just tried it and it worked for me Can you search for an email with "Important: confirm your subscription"?

  • @felkonx
    @felkonx 23 วันที่ผ่านมา

    Again - a very helpfull video - Thx!

  • @PodcastClips910
    @PodcastClips910 24 วันที่ผ่านมา

    W tutorial

  • @happyswing
    @happyswing 25 วันที่ผ่านมา

    import bpy # Import the Blender Python API import math # Import the math library for mathematical operations # Define the number of vertices and the radius of the circle vert_count = 18 # Total number of vertices radius = 3 # Radius of the circle angle_step = math.tau / vert_count # Calculate the angle step between vertices # Create a new mesh object mesh = bpy.data.meshes.new("PointsMesh") # Create a new mesh data block # Initialize an empty list to hold vertex coordinates vertices = [] # Define the starting position (not used in this case, but can be adapted) start_angle = (10960.6, 1153.34, 0.00) # Example starting position (not utilized in calculations) # Convert the starting position into a current angle using atan2 current_angle = math.atan2(start_angle[1], start_angle[0]) # Get the angle in radians # Begin creating the vertices for i in range(vert_count): # Calculate the current angle for each vertex current_angle = i * angle_step # No offset applied to angles # Calculate the x and y coordinates based on the radius and current angle x = radius * math.cos(current_angle) # X coordinate y = radius * math.sin(current_angle) # Y coordinate # Append the vertex coordinates to the list vertices.append((x, y, 0)) # Z coordinate is set to 0 for a 2D circle on the XY plane # Define the vertices for the mesh mesh.from_pydata(vertices, [], []) # Create mesh data from the vertex list mesh.update() # Update the mesh to reflect changes # Create a new object using the mesh and link it to the current collection obj = bpy.data.objects.new("Points", mesh) # Create a new object bpy.context.collection.objects.link(obj) # Link the object to the current collection in the scene # Print the vertex coordinates to the console for verification print(vertices)

    • @happyswing
      @happyswing 25 วันที่ผ่านมา

      I just don't know how to start a i * angle_step + start_angle I want to get coordinates of next x y z If i have (x10.9 m, y1.15m , z 0,89) 1st point then (x9.9m, y4.83m, z 0.89) 2nd point and etc. they go around (0, 0, 0) and i can't explain how to start from a certain point of rotation.

  • @andreyzelenskiy8920
    @andreyzelenskiy8920 25 วันที่ผ่านมา

    Very nice set of tutorials! Is there a simple way to convert this function to a Blender modifier (i.e. to apply it to a selected mesh within Blender UI)?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      I don't know about a Blender modifier, IIRC they are all written in C++. But you can create a add-on that can apply this to any selected mesh by hitting a button. You basically follow this tutorial th-cam.com/video/Qyy_6N3JV3k/w-d-xo.html&lc=UgyvUIgd8tvcW-EQuzp4AaABAg and add a button that will call an Operator that calls this function Here is an example: gist.github.com/CGArtPython/836337be031ae66342ee458e553644cc

  • @parkour8899
    @parkour8899 25 วันที่ผ่านมา

    I greatly appreciate your help; you went straight to the point. I was looking for an output platform for the data I'm about to generate through IoT sensors. If you have any recommendations for a bootcamp that covers this topic, I would be very happy. I'm asking for this recommendation because of the quality of your explanation, which was impeccable! You earned a subscribed!

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Thank you! Sorry, not sure who covers that topic

  • @ft.harshsharma
    @ft.harshsharma 26 วันที่ผ่านมา

    Where can I get more advanced tutorials covering panel ui ?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      What are you interested in?

  • @rakshithkumarg1839
    @rakshithkumarg1839 28 วันที่ผ่านมา

    Where will you get the code for registering the window manger???

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Not sure what you are asking There is a lot of example code that registers keymaps, I just found an example and updated to what I needed

  • @bennyirawan7054
    @bennyirawan7054 28 วันที่ผ่านมา

    your voice sound so soothing, it almost feels therapeutic

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      🙂

  • @LucidGeometry
    @LucidGeometry หลายเดือนก่อน

    Very nice. You could continue this great script by making it more idiomatic Python. For example, rather than reassigning from and to node variables (only in python is this ever considered acceptable code 😱) simply define a function that takes the from/to nodes and output/input names to connect as parameters. This is a two-birds refactoring: readability and reusability. You can use the same technique with the x-coordinate of the nodes. Hide the increment in a function, call it each time and just assign each new return value when you create the node. Then you can also encapsulate that within a new_node(…) function that takes a node name and calls the increment. I’m coming at this as a Python programmer learning Blender scripting. We’ll meet in the middle! Again, awesome tutorial.

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Thanks for the tips!

  • @ferriohtv
    @ferriohtv หลายเดือนก่อน

    Master how i can controle timeline Driver whit geometry nodes and python?? would be amazig for make a procedural crows animation

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      Not sure about how to control a timeline from Geo Nodes, but you can create variables and expressions with Python

  • @haseebahmed3195
    @haseebahmed3195 หลายเดือนก่อน

    I think you should create a simple extension that bundle python module using wheel .

  • @VVV.12345
    @VVV.12345 หลายเดือนก่อน

    YES!! Thank you so much!!!

  • @HarvestrX
    @HarvestrX หลายเดือนก่อน

    Is there a way to stop a script from running when it doesn't work without shutting down Blender? Right now, I choose kill terminal in VS Code and it stops processing the script of course, but in doing so it shuts down Blender as well. Also, why are my scripts becoming read only where I can't edit them?

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      I can't think of a great solution for this. > Also, why are my scripts becoming read only where I can't edit them? What version of the extension are you running? I think this was fixed in [0.0.22] - 2024-09-04 "Blender: Run Script" will no longer open read-only file when hitting debug point (#142)" github.com/JacquesLucke/blender_vscode/blob/master/CHANGELOG.md If you are running version [0.0.22] or higher Please ask to reopen github.com/JacquesLucke/blender_vscode/issues/140

  • @felkonx
    @felkonx หลายเดือนก่อน

    Thank you for sharing. Please no background Sounds/music. I am not an native english speaker and it makes it hard to follow, your sometimes really fast, speechpattern 😖

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      I will keep that in mind! Thanks for the feedback!

  • @mrdixioner
    @mrdixioner หลายเดือนก่อน

    Why install Python when you can configure VSCode to use the Blender interpreter. So the first point can be safely crossed out.

  • @ced9302
    @ced9302 หลายเดือนก่อน

    Hello, thank you for this great turotial. Is it possible to export the material so that it can be retrieved from another script?

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Yes, you can save it into a blend file. Here is an example: gist.github.com/CGArtPython/3951a2aba0b14ef1b4090e5c8ad516dd

  • @NotGarbageLoops
    @NotGarbageLoops หลายเดือนก่อน

    Watching this at 1.75x speed, the background music become drumb&bass XD

    • @CGPython
      @CGPython หลายเดือนก่อน

      😆

  • @Aaqil_3D
    @Aaqil_3D หลายเดือนก่อน

    ​@CGPython Could you please help me understand how to create a drop-down menu within a compositor Node Group in Blender?

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      I'll write down this idea, thanks!

    • @Aaqil_3D
      @Aaqil_3D 28 วันที่ผ่านมา

      @@CGPython You're welcome ☺

  • @toapyandfriends
    @toapyandfriends หลายเดือนก่อน

    Now scripts created on ChatGPT can get errors. I’ve created a Blender add-on that automates the process of having GPT generate code, running it in the text editor, and pasting any errors back into GPT. It also automates finding code examples to give it. You can provide it with any add-on or file as an example. For people who write Blender Python scripts, this is a game-changing tool. Is there a way I could get you to do a video on it? Or maybe I could send you a copy to test-it’s really robust, with over twenty thousand lines of code.

  • @toapyandfriends
    @toapyandfriends หลายเดือนก่อน

    Now scripts created on ChatGPT can get errors. I’ve created a Blender add-on that automates the process of having GPT generate code, running it in the text editor, and pasting any errors back into GPT. It also automates finding code examples to give it. You can provide it with any add-on or file as an example. For people who write Blender Python scripts, this is a game-changing tool. Is there a way I could get you to do a video on it? Or maybe I could send you a copy to test-it’s really robust, with over twenty thousand lines of code.

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      This sounds cool, but I don't do product reviews on this channel.

  • @mrdixioner
    @mrdixioner หลายเดือนก่อน

    Спасибо огромное!!!

  • @amankushwaha4362
    @amankushwaha4362 หลายเดือนก่อน

    I love the way he just explain. First show problem then give the solution to train my brain at learning time.

  • @mrdixioner
    @mrdixioner หลายเดือนก่อน

    Спасибо огромное!!! Вы очень хорошо объясняете!

    • @CGPython
      @CGPython หลายเดือนก่อน

      Happy to help! ❤️‍🔥

  • @KevinCBurke
    @KevinCBurke หลายเดือนก่อน

    Thank you SO much for this video. It helped me a ton! 🙏

    • @CGPython
      @CGPython หลายเดือนก่อน

      Glad it helped!

  • @stindedesign
    @stindedesign หลายเดือนก่อน

    Thanks for the good and useful videos. I'm pretty new to Blender programming. I'm using homebrew to install a lot of useful s/w. The python3 - m pip install fake-bpy-module forces to use either brew or pipx. However, either of those works. Can you add the homebrew and pipx way in you video? I would help a lot.

    • @stindedesign
      @stindedesign หลายเดือนก่อน

      Hi. I got it sorted out. The easiest way is to create the virtual environment with VS code in the workspace and install the fake-bpy-module there.

    • @CGPython
      @CGPython หลายเดือนก่อน

      Thanks for sharing your findings! 💖

  • @mahmoudsalah7628
    @mahmoudsalah7628 หลายเดือนก่อน

    Nah this is not getting enough recognition yet, You are my hero from now on :)

  • @ced9302
    @ced9302 หลายเดือนก่อน

    Hello Victor, I thought I saw that it was possible in some way to do the opposite. I mean install blender as a python module. Wouldn't that be more advantageous? If possible, would you consider making a video to explain how to do it? THANKS

    • @SpencerMagnusson
      @SpencerMagnusson หลายเดือนก่อน

      @@ced9302 depends on your use case. But yes, you can install Blender as a Python module; I use it for unit testing. But it's effectively running Blender headless, so not everything is enabled (say, simulating user input). If you want Blender's UI, then you'd be better off with Blender as an app.

    • @CGPython
      @CGPython หลายเดือนก่อน

      Yeah, I have a video on this in the works. You can find the bpy module here pypi.org/project/bpy/ It is great for doing bulk processing of assets. I would say you would iterate on your script with the blender UI and then once everything is working you would use this bpy module installed from pip. I think it would be hard to iterate on a script without the UI, unless you have years for experience with bpy.

  • @SpencerMagnusson
    @SpencerMagnusson หลายเดือนก่อน

    Great video! Thanks for sharing that, neat tip. And just so users know, they don't have to install Python or pip themselves. It's already included with Blender. The path on Windows is "C:\Program Files\Blender Foundation\Blender 4.2\4.2\python\bin\python.exe". So you can just do "python.exe -m pip" instead of just "pip" while in that folder (or use the full file path).

    • @CGPython
      @CGPython หลายเดือนก่อน

      Great point! Thanks!!

    • @alessandromaccarini9207
      @alessandromaccarini9207 5 วันที่ผ่านมา

      Following this approach, would it be possible to install external Python packages directly from the Blender scripting editor, without needing to open a terminal?

    • @CGPython
      @CGPython 2 วันที่ผ่านมา

      @@alessandromaccarini9207 you can do something like this import sys, subprocess subprocess.run([sys.executable, '-m', 'pip', 'install', 'pillow', '-t', '/path/to/scripts/modules']) in the interactive python console IIRC, I have seen some add-ons that make this user friendly

  • @HVLib
    @HVLib หลายเดือนก่อน

    the problem am facin is how to separate system python of blender python. or how to change interpreter without getting conflicts. I start getting this issues just recently on win 11

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Are you not able to select the Python interpreter on the bottom right of VSCode?

  • @HorseyTime
    @HorseyTime หลายเดือนก่อน

    Bro i spent like FOREVER trying to find how to use pygame with blender. Eventually figured it out omg i woulda killed for this video in thag time

  •  หลายเดือนก่อน

    This is very helpful. Thank you!

  • @carloscarneiro1857
    @carloscarneiro1857 หลายเดือนก่อน

    Hi Victor, muito obrigado por compartilhar de uma forma tão direta e fácil para o leigo este aprendizado

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Glad you think so! ❤️‍🔥 Happy to help! 🙂

  • @arturertel
    @arturertel หลายเดือนก่อน

    that helped a lot!

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Nice!

  • @mind_of_a_darkhorse
    @mind_of_a_darkhorse หลายเดือนก่อน

    Wow, this is a big help! Thanks for bringing this to our attention!

  • @arthurprather6720
    @arthurprather6720 หลายเดือนก่อน

    Useful information, easy to pick up. Thanks for sharing.

    • @CGPython
      @CGPython 28 วันที่ผ่านมา

      Thank you