Create a Simple Rig UI with Blender Python

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

Комментарии • 19

  • @CGPython
    @CGPython  3 месяца назад

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

    • @DJ_Narcan
      @DJ_Narcan 3 месяца назад

      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?

  • @krysidian
    @krysidian 3 месяца назад

    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  3 месяца назад +1

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

    • @krysidian
      @krysidian 3 месяца назад

      @@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 3 месяца назад

      @@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  3 месяца назад +1

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

  • @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  27 дней назад

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

  • @nicolassuarez2933
    @nicolassuarez2933 3 месяца назад

    Outstanding!

    • @CGPython
      @CGPython  3 месяца назад

      Thank you kindly!

    • @nicolassuarez2933
      @nicolassuarez2933 3 месяца назад

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

    • @CGPython
      @CGPython  3 месяца назад +2

      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'

  • @GlitchCableYt
    @GlitchCableYt 3 месяца назад +1

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

    • @CGPython
      @CGPython  3 месяца назад

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

    • @GlitchCableYt
      @GlitchCableYt 3 месяца назад +1

      @@CGPython Thank you!!