Activity
Mon
Wed
Fri
Sun
Oct
Nov
Dec
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
What is this?
Less
More
CG Python Academy

1.4k members • Free

41 contributions to CG Python Academy
Using "portable" Blender
Just started the "Blender Python for Artists Part 1". I use Blender on Linux (currently Kubuntu distro) and like to maintain strict control over which version I am using. To do this I use a “portable” installation which sets up a separate copy of the blender software for development. This way I can explore changes and scripts without impacting my main Blender application.
1 like • 16d
I use Blender on PC/Windows. There is an easy way of developing scripts without the need to use a portable version. First, each version installs by default in a separate folder, so I have all versions from4.2 to 5.2 available in parallel. Second, I use VSCode with the Blender addon, not the Blender internal script editor. This has the big advantage that it doesn't change the current file in Blender or the normal configuration of Blender as all is installed in a separated VSCode development repository, so I can even have the same addon in a previous version installed regularly and also have the same in development in this repository at the same time. The VSCode addon has a Run command to start the desired Blender and it automatically lists all installed Blender versions and I can choose at every time which one I want to use and test the script with that one. I'm not sure (not tested) if this would find a portable version, but I guess not as it would need to search through all folders to find the Blender executable. With VSCode you have a full debugger, you can compare scripts, you can use Github for versioning and there is also a Copilot AI automatically installed in VSCode which directly supports coding in the code editor.
3 free AI models worth trying
You don't need to pay for anything to start coding with AI right now. Here's what you can try in the free tier on OpenRouter. 1. 𝐐𝐰𝐞𝐧𝟑 𝐂𝐨𝐝𝐞𝐫 𝟒𝟖𝟎𝐁 Use this when you want to actually code. Paste the script, paste the error, and let it help you get unstuck. 2. 𝐆𝐞𝐦𝐦𝐚 𝟒 𝟑𝟏𝐁 Use this when the problem is visual. Screenshot your Blender UI, render, node setup, or error, and ask what’s going wrong. 3. 𝐍𝐞𝐦𝐨𝐭𝐫𝐨𝐧 𝟑 𝐔𝐥𝐭𝐫𝐚 Use this when you need to read a lot before coding. Great for understanding docs or a large codebase, but I’d be careful letting it write final code. Which of these have you already used?
3 free AI models worth trying
1 like • Jun 27
@Victor Stepanov The current addon has 6 modules, separated in init, globals, operators, props, utils and ui. Some thousand lines of code. Around 20 properties for the N-menu, 18 (bigger) functions. Here's a picture of what it creates in the end, with all these parameters. Manifold Object to be able to 3D print it directly. Uses bmesh bevels as they are very much better to work with than the bevel modifier, also implements functions to do solidify without the solidify modifier as this often creates nonsense. No, of course I have no video about that, I'm until now no content creator like you... ;) Main issues are that Blender's API is a hell... hahaha... You think it's simple and you think, ah, this can be done in some hours with Python and then you end up with weeks of work. :) Blender is really bad when you try to create simple constructions like this one. If you need to add a vertex somewhere which should be part of an edge of another face you find out that Blender adds the Vertex at the correct position, but doesn't integrate that into the desired edge. Instead, you need to create the face with calculating all the needed vertices on your own and then the vertex get added where it should. This was the biggest problem in the whole construction of this, moreover the vertices needs to be added in clockwise or counter clockwise order, otherwise the face has the wrong normals direction. Really helpful are the settings in the third picture, "Wireframe" and "Face Orientation" so you directly see wrong normals as red face, and see the edges without always switching to wireframe or edit mode. Really must have settings for developers! But beside that you need a lot of tricks and experience with the normal UI usage without Python to get the desired result of such more complex constructions. Here the AI is of big help, although you often need to find out a solution with usual search engines and then the AI tells you that this is "of course" the better way... (why the heck couldn't it recommend that solution if it is "of course" better??.. hahaha...).
2 likes • Jun 27
@Victor Stepanov > Even better try an agent where you can define persistent instructions for exactly these issues Sure, there are so many now. But many of them needs a payed account and I don't want to pay for hobby programming. Would be another thing if I was doing something commercial or earn my money with it like possibly you do with your videos. But the free ones are good and fast enough for my purposes. If you login with MS account (free) for Copilot or login with Google account (Gemini) you also have some possibilities like that it automatically saves the chats and have some settings available.
Keyframes in python
Is there a way that i can access already existing keyframe information of an object or especially a bone in blender’s script editor 🤔
2 likes • May 24
Hi! Sure, usually you can access each and every information from the Blender API, although often not easy to achieve. I have no experience in case of bones, but other's have... :) https://blender.stackexchange.com/questions/111314/how-do-you-access-and-set-a-specific-bone-animation-fcurve-in-python-e-g-set Please keep in mind that this is an older entry, Blender's fcurve API has changed in the meantime. The newer one is not easier, but needs more investigation to understand it. You should look at the official API documentation and asking an AI is also a good way.
Floating UI
I saw the making your first UI video in classroom. Is it possible to create a floating UI by any chance??
3 likes • Mar 14
There are already addons to manage n-menu entries. Some samples: https://superhivemarket.com/products/cool-addons-menu https://superhivemarket.com/products/simple-n-panel Moreover, the layout possibilities Blender offers for the self-made UI are really immense. You can layout whatever you want in columns and rows you can define by yourself, you can also use sub-elements like a list where you can organize columns on many ways (including graphics) and you can also use graphics to be displayed in an n-menu which can be programmatically created or loaded from the file system. As you can use anythiing Blender supports this includes to render a gray image of your character, save it as picture, load it into the UI as icon - lot of programming work of course, you need to learn a lot about how to do all that. You can render all the buttons in the sample in similar way, but the heavy part would be to render them on exact positions over the image. Needs a lot of experiments (and frustrations... :) ). But surely you could get something similar. Expect some months of programming/experimenting... ;)
Merry Christmas
🎁 Merry Christmas! Good vibes, cozy moments, and lots of joy. 🎁 (Made in Germany by me, gemini & nano banana)
Merry Christmas
2 likes • Dec '25
...und nicht zu vergessen: Frohe Weihnachten und guten Rutsch!... ;)
1-10 of 41
Christian Coppes
5
316 points to level up
@christian-coppes-1848
Database developer and Blender/Python beginner

Active 6d ago
Joined Dec 1, 2024
Powered by