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?
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 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
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.
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'
Get the extended video here:
cg-python.ck.page/4ce30cbed2
Initial Starting Code:
gist.github.com/CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0
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?
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.
Great question!
I don't know if that is possible through the Python API.
@@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
@@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)
Thank you for sharing this!!
Great to know!! 💖
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.
This sounds cool, but I don't do product reviews on this channel.
Outstanding!
Thank you kindly!
@@CGPython I suppose the next step is animating :) Can we recreate any blender funcionality with bpy? Lets say particles. Thanks!
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'
hey where is the place to copy the start script?
Thanks!
Glitchcable
here it is
gist.github.com/CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0
@@CGPython Thank you!!