Skip to content

Instantly share code, notes, and snippets.

@CGArtPython
Created July 12, 2024 08:26
Show Gist options
  • Save CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0 to your computer and use it in GitHub Desktop.
Save CGArtPython/be9b9fcb6e878a6d073815c1246e9ff0 to your computer and use it in GitHub Desktop.
Initial code for a Blender Python tutorial about creating a simple Rig UI panel. (video link https://www.youtube.com/watch?v=quXn5VoVyAI&lc=UgxGgnYLDtaIVAFxA754AaABAg )
# give Python access to Blender's functionality
import bpy
class VIEW3D_PT_my_rig_ui(bpy.types.Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = 'Item'
bl_label = "My Rig UI"
bl_idname = "VIEW3D_PT_rig_ui"
def draw(self, context):
pass
def register():
bpy.utils.register_class(VIEW3D_PT_my_rig_ui)
def unregister():
bpy.utils.unregister_class(VIEW3D_PT_my_rig_ui)
if __name__ == "__main__":
register()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment