Пікірлер
@花茶鱼i
@花茶鱼i Күн бұрын
Hello, I would like to ask how to connect the internal attributes of the node to the custom panel... For example, the copied path:node_tree.nodes["glare1.001"].glare_type。。。row.prop? Or box?I always can't display it correctly.
@ZenOfKursat
@ZenOfKursat 6 күн бұрын
thank you bruh.
@ZenOfKursat
@ZenOfKursat 7 күн бұрын
when I try to run, code (ctrl+alt+n) getting error: module 'bpy' has no attribute 'types' if I attempt to run it via ctrl+shift+p "Blender:Start (or others)" blender opens and closes and vscode terminal error is: PermissionError: [WinError 5] Access is denied: 'c:\\Program Files\\Blender Foundation\\Blender 4.3\\4.3\\python\\Lib\\site-packages\\debugpy' btw "code debug tools" extenstion already installed in blender. anyway thanks much. currently code intellisense is good enuff.
@ZenOfKursat
@ZenOfKursat 7 күн бұрын
I got *Blender:start* working! after many interesting process.! if someone got himself in trouble I can make a video how to fix this trouble. just send a msg. but dont know gow to fix module 'bpy' has no attribute 'types' issue yet.
@mixchief
@mixchief 8 күн бұрын
@CGPython Would you recommend trying Ollama and something like Qwen as local model for working with simple bpy addon dev? And in case of yes (given benefits like the free price and local nature), maybe that could be something you might consider doing a video about? I've only began scratching the surface of it and not too sure how to set things up.
@mixchief
@mixchief 8 күн бұрын
@CG Python At 1:30 Can you explain what "first two numbers match" mean? To me, it seems none of the numbers match in this video: eg. [3] and [1] in 3.12.1 ... or in 3.10.13, etc.
@sudampatil3466
@sudampatil3466 9 күн бұрын
Really great tutorial. I was looking that same panel how can be added in header section?
@TynkaTopi
@TynkaTopi 11 күн бұрын
I like also Node arrange addon :) I coded it around in 2015 and later added to support groups (inside groups arrange).
@syam.k.yenubari
@syam.k.yenubari 12 күн бұрын
Hey there can you make a video on how to bundle 3rd party Python packages into my blender addon I want some AI capabilities in my blender addon... thanks in advance.
@ZenOfKursat
@ZenOfKursat 13 күн бұрын
debugging line by line with syncronized blender ? wow!
@aroundtheworld1983_
@aroundtheworld1983_ 13 күн бұрын
Ai can't even do a basic Python script on Blender. There will always be a problem. Especially when it comes to using add ons or simulations. Much better to search for tutorials on the Internet and in a few minutes you can get what you want.
@enochhammond9779
@enochhammond9779 13 күн бұрын
I can’t install any adding because it keeps saying missing manifest please help me out
@francescotateo7226
@francescotateo7226 16 күн бұрын
Hi Victor, I recently started studying python because of a project of mine and I am stuck. I watched like all of your videos in the last week and I can’t understand how to create this thing. I am trying to use an enum in the sidebar to drive the link of two nodes, so that when the enum is set to option 1 the node A is linked to the node C and when the enum is set to option 2 the node B is linked to the node C (clearing the old linking of course). Is this even possible? I don’t know what I’m doing wrong but even copying the code from the console after doing it by hand doesn’t work… please help me I am desperate :,) Thank you very much
@CGPython
@CGPython 16 күн бұрын
I think this is possible Would you be able to share the code you have? I have a community on skool, it would be easier to chat there, just ask your question there. Link to the community in the about page for this channel
@francescotateo7226
@francescotateo7226 16 күн бұрын
@ sure, I will share the code there, thank you very much!
@nitinpandey294
@nitinpandey294 17 күн бұрын
This is very very interesting and great work , normally I don't comment ,but this exceptional,... liked and subscribed
@CGPython
@CGPython 16 күн бұрын
Thank you for the kind words!
@BogRtM
@BogRtM 19 күн бұрын
Thank you! This is incredible useful information.
@DaddyMouse
@DaddyMouse 19 күн бұрын
man you just saved me HOURS of work, thank you! do you have a patreon or some other site I could leave you a tip?
@CGPython
@CGPython 18 күн бұрын
Thank you for the kind words 💖 I have a Free community on skool (link in the channel about page), joining that is the best way to thank me
@OPFFYT
@OPFFYT 22 күн бұрын
This was really disappointing how you are teaching peoples just pasting the code and continuing everytime just telling do this and that and not telling anytime why do this and explanation of code.
@CGPython
@CGPython 18 күн бұрын
Sorry to hear that! Do you have a particular part of the code that you need help understanding?
@somedude5951
@somedude5951 25 күн бұрын
I tried to list the meshes in Blender 4.0, but it didn't work. Here is the code I would get: >>> import bmesh >>> >>> bmesh.ops.create_ Traceback (most recent call last): File "<blender_console>", line 1, in <module> AttributeError: BMeshOpsModule: operator "create_" doesn't exist I also tried "create" without the underscore, but would get the same result. I would love to know, how to call the available meshes in bmesh though 😥
@Kate-r1e
@Kate-r1e 26 күн бұрын
give Python access to Blender's functionality import bpy # add a cube into the scene bpy.ops.mesh.primitive_cube_add() # get a reference to the currently active object cube = bpy.context.active_object # insert keyframe at frame one start_frame = 1 cube.keyframe_insert("location", frame=start_frame) # change the location of the cube on the z-axis cube.location.z = 5 # insert keyframe at the last frame end_frame = 180 cube.keyframe_insert("location", frame=end_frame)
@ahmadabousetta
@ahmadabousetta 27 күн бұрын
Thank you
@sweet_cyanide1
@sweet_cyanide1 Ай бұрын
Спасибо большое
@CGPython
@CGPython Ай бұрын
Happy to help!
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you
@CGPython
@CGPython 18 күн бұрын
You're welcome
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thanks
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thanks
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you. I learn a lot from you.
@CGPython
@CGPython Ай бұрын
Glad to hear that! 💘 BTW I have a skool community where I share more lessons. If you are interested the link is on the about page for this channel.
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you
@CGPython
@CGPython Ай бұрын
Anytime! 🙂
@ItsWesSmithYo
@ItsWesSmithYo Ай бұрын
Great process, getting my feet wet on Python side…lesson learned…ChatGPT only has training up to blender 2.92, and it won’t tell you this as you bang your head going down this path…I figured this out because it was making suggestions I finally realized were from older version features…so I asked it one day…and it confirmed, for whatever that’s worth 😂 stay curious 🧮🤙🏽💀
@girltrashstuff
@girltrashstuff Ай бұрын
I can't get the fake bpy module to work. I followed the instructions, but it doesn't show any predictions when typing.
@tgrantpusch
@tgrantpusch Ай бұрын
thanks dude, works like a charm!!!
@CGPython
@CGPython 18 күн бұрын
You're welcome! 😊
@kvdam8826
@kvdam8826 Ай бұрын
Another top video👍👍👍. Thanks
@CGPython
@CGPython Ай бұрын
You bet
Ай бұрын
Very usefull. Thank you!
@CGPython
@CGPython Ай бұрын
Glad it was helpful! 💖
@workingwithaudioandvideo6239
@workingwithaudioandvideo6239 Ай бұрын
I added your playlist to my saved playlists. I really do need to start improving my python scills. I think you would be the best person to help with that. Great video by the way. I will start tomorrow hopefully. It's early in the morning right now.
@CGPython
@CGPython Ай бұрын
That is great to hear! If you need help or you have questions, you can join my community www.skool.com/cgpython
@JoJo-e9g4u
@JoJo-e9g4u Ай бұрын
Thanks much appreciated.
@CGPython
@CGPython Ай бұрын
You're welcome! 💖
@J_Mon
@J_Mon Ай бұрын
nice tricks :D .. may i request how to creating script to copy paste the same driver into whole objects at the same time. Copy paste driver 1 by 1 each object @viewport + @render icon takes so much time, i hope you can give us the tricky way with phyton script ^_^ . thanks Good job
@CGPython
@CGPython Ай бұрын
Great question! I made some code and a video explanation of that code in my skool community. You can find a link to it my about page. The main idea is that you can use from_existing to create a driver from an existing one: target_obj.animation_data.drivers.from_existing(src_driver=source_driver_fcurve)
@ferriohtv
@ferriohtv Ай бұрын
Thanks master
@CGPython
@CGPython Ай бұрын
You're welcome! 😁
@floretion
@floretion Ай бұрын
This is a great tutorial and very clearly explained. That said, I'm still not quite sure why it is better than the more "traditional" way of writing the code, as to me, having 3 functions "open door()", "do something()", "close door()" does not really seem that much of a hastle.
@CGPython
@CGPython Ай бұрын
Great question! Calling functions can be error-prone; for example, you might forget to call close(). Context managers become invaluable in larger, more complex projects. Once you get used to Context managers, the code will become more readable.
@captaincharles9166
@captaincharles9166 Ай бұрын
How about when the scripting option is not up there?
@CGPython
@CGPython Ай бұрын
sorry, I don't understand what you are asking about
@WolfsDenShop
@WolfsDenShop Ай бұрын
You're a good teacher and that's a good tutorial. Just pop a Valium, before you start recording your next Tut; it will Batch Delete Your Jitters.
@CGPython
@CGPython Ай бұрын
lol, thanks I think I have gotten over that 😊
@WolfsDenShop
@WolfsDenShop Ай бұрын
@@CGPython 🙂
Ай бұрын
After the convenience of creating geometry nodes, manipulating drivers seems the coolest thing to do with python in Blender. Thank you!
@CGPython
@CGPython Ай бұрын
Yes! Drivers are so much fun! 😁
@barbaraacorsi8200
@barbaraacorsi8200 Ай бұрын
this is incredibleee!!!!! OMG
@CGPython
@CGPython Ай бұрын
Get the extended tutorial by signing up to my email list: cg-python.ck.page/6df41ae30a A link to the full code can be found in my community: www.skool.com/cgpython/create-a-driver-variable-with-blender-python?p=d946ad15
@felkonx
@felkonx Ай бұрын
This solution as an code snippet works too - and can be saved into my list of helper scripts 😀 I am very new to python (and used ai help!) ... improvements are welcome! import subprocess import sys import os # Change this to your desired path my_path = r"C:/Users/Felix/AppData/Roaming/Blender Foundation/Blender/4.2/scripts/modules" # Change this to your desired module my_module = "pillow" # install/uninstall my_action = "install" # or "uninstall" try: # Run the pip install command with the --target arguments subprocess.check_call([sys.executable, "-m", "pip", my_action, "--target", my_path, my_module]) except subprocess.CalledProcessError as e: print(f"Error occurred while installing: {e}") # You can log e.returncode, e.cmd, and e.output for more information # for installing more than one module in one step # subprocess.check_call([sys.executable, "-m", "pip", "install", "pandas", "xlwings"])
@CGPython
@CGPython Ай бұрын
This is really neat! Great job!
@CGPython
@CGPython Ай бұрын
If you want you can post this in my community and we can discuss it there www.skool.com/cgpython
@oceanlovesmoon
@oceanlovesmoon Ай бұрын
you are genius tysm
@felkonx
@felkonx Ай бұрын
Thx A LOT! The approach with: 1. Get the path with: bpy.utils.user_resource("SCRIPTS", path="modules") 2. Copy the path to e.g. Notepad 3. Change the \\ in the path to / (I goth this: 'C:\\Users\\MyName\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\scripts\\modules') 4. Run in the Blender scripting editor: import sys subprocess subprocess.run([sys.executable, '-m', 'pip', 'install', 'pandas', '-t', 'C:/Users/MyName/AppData/Roaming/Blender Foundation/Blender/4.2/scripts/modules']) worked for me 😀. I needed 'pandas"
@Sharksleepy
@Sharksleepy Ай бұрын
cooool! thanks a lot.❤
@ahmadabousetta
@ahmadabousetta Ай бұрын
Thank you