Create a Simple Rig UI with Blender Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ค. 2024
  • In this video, I'll show you how to create a basic rig UI panel similar to what the Rigify Add-on creates.

ความคิดเห็น • 17

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

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

    • @DJ_Narcan
      @DJ_Narcan 26 วันที่ผ่านมา

      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 28 วันที่ผ่านมา

    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  27 วันที่ผ่านมา +1

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

    • @krysidian
      @krysidian 26 วันที่ผ่านมา

      @@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 26 วันที่ผ่านมา

      @@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  22 วันที่ผ่านมา +1

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

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

    Outstanding!

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

      Thank you kindly!

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

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

    • @CGPython
      @CGPython  หลายเดือนก่อน +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 27 วันที่ผ่านมา +1

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

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

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

    • @GlitchCableYt
      @GlitchCableYt 26 วันที่ผ่านมา +1

      @@CGPython Thank you!!