[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEG49CJ95KTT9K69S7Y8KP":3,"skill-same:01M6EEG49CJ95KTT9K69S7Y8KP":48},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":23,"frontMatter":24,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M6EEG49CJ95KTT9K69S7Y8KP","blender-animation",null,"ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fblender-animation\u002FSKILL.md",[],[18,19,20],"Animation","blender","blender animation","2026-11-10 10:12:30",false,"# Blender Animation\n\n## Overview\n\nCreate and control animations in Blender using Python. Keyframe object and bone transforms, build armatures with IK\u002FFK rigs, animate shape keys for facial motion, edit F-Curves for timing control, layer actions in the NLA editor, and wire up drivers for expression-based automation — all scriptable from the terminal.\n\n## Instructions\n\n### 1. Keyframe object properties\n\n```python\nimport bpy\n\nobj = bpy.data.objects[\"Cube\"]\n# Keyframe location at multiple frames\nfor loc, frame in [((0,0,0), 1), ((5,0,3), 30), ((5,4,0), 60)]:\n    obj.location = loc\n    obj.keyframe_insert(data_path=\"location\", frame=frame)\n\n# Also works for rotation_euler, scale, single-axis (index=2 for Z), custom props\nobj.rotation_euler = (0, 0, 3.14159)\nobj.keyframe_insert(data_path=\"rotation_euler\", frame=60)\nobj.scale = (2, 2, 2)\nobj.keyframe_insert(data_path=\"scale\", frame=60)\nobj[\"intensity\"] = 1.0  # custom property\nobj.keyframe_insert(data_path='[\"intensity\"]', frame=30)\nbpy.context.scene.frame_start, bpy.context.scene.frame_end = 1, 60\n```\n\n### 2. Control F-Curve interpolation and modifiers\n\n```python\nimport bpy\n\naction = bpy.data.objects[\"Cube\"].animation_data.action\nfor fcurve in action.fcurves:\n    for kp in fcurve.keyframe_points:\n        kp.interpolation = 'BEZIER'  # CONSTANT, LINEAR, BEZIER, SINE, EXPO, BOUNCE, ELASTIC\n        kp.easing = 'EASE_IN_OUT'   # AUTO, EASE_IN, EASE_OUT, EASE_IN_OUT\n    # Cycles modifier to loop the animation\n    mod = fcurve.modifiers.new(type='CYCLES')\n    mod.mode_before = 'REPEAT'       # NONE, REPEAT, REPEAT_OFFSET, MIRROR\n    mod.mode_after = 'REPEAT'\n\n# Add noise to a specific channel\nz_curve = action.fcurves.find(\"location\", index=2)  # Z location\nif z_curve:\n    noise = z_curve.modifiers.new(type='NOISE')\n    noise.strength, noise.scale = 0.3, 5.0\n```\n\n### 3. Create armatures and bones\n\n```python\nimport bpy\n\narm_data = bpy.data.armatures.new(\"Rig\")\narm_obj = bpy.data.objects.new(\"Rig\", arm_data)\nbpy.context.collection.objects.link(arm_obj)\nbpy.context.view_layer.objects.active = arm_obj\nbpy.ops.object.mode_set(mode='EDIT')\n# (name, head, tail, parent_name, connected)\nbone_defs = [\n    (\"Spine\",      (0,0,1.0),   (0,0,1.4),   None,       False),\n    (\"Chest\",      (0,0,1.4),   (0,0,1.8),   \"Spine\",    False),\n    (\"UpperArm.L\", (0.2,0,1.7), (0.5,0,1.4), \"Chest\",    False),\n    (\"Forearm.L\",  (0.5,0,1.4), (0.8,0,1.1), \"UpperArm.L\", True),\n    (\"Thigh.L\",    (0.1,0,1.0), (0.1,0,0.5), \"Spine\",    False),\n    (\"Shin.L\",     (0.1,0,0.5), (0.1,0,0.05),\"Thigh.L\",  True),\n]\nfor name, head, tail, parent, connected in bone_defs:\n    b = arm_data.edit_bones.new(name)\n    b.head, b.tail = head, tail\n    if parent:\n        b.parent = arm_data.edit_bones[parent]\n        b.use_connect = connected\n\nbpy.ops.object.mode_set(mode='OBJECT')\n```\n\n### 4. Set up constraints on bones\n\n```python\nimport bpy\n\narm_obj = bpy.data.objects[\"Rig\"]\nbpy.context.view_layer.objects.active = arm_obj\nbpy.ops.object.mode_set(mode='POSE')\n# IK — use an empty as target, chain_count limits affected bones\nik = arm_obj.pose.bones[\"Forearm.L\"].constraints.new('IK')\nik.target = bpy.data.objects[\"IK_Target\"]\nik.pole_target = bpy.data.objects[\"IK_Pole\"]\nik.chain_count = 2\n\n# Copy Rotation — mirrors another object's rotation\ncr = arm_obj.pose.bones[\"Chest\"].constraints.new('COPY_ROTATION')\ncr.target = bpy.data.objects[\"ChestCtrl\"]\n# Other types: LIMIT_ROTATION, DAMPED_TRACK, STRETCH_TO, COPY_LOCATION, TRACK_TO\n\nbpy.ops.object.mode_set(mode='OBJECT')\n```\n\n### 5. Keyframe bone poses\n\n```python\nimport bpy, math\n\narm_obj = bpy.data.objects[\"Rig\"]\nbpy.context.view_layer.objects.active = arm_obj\nbpy.ops.object.mode_set(mode='POSE')\nif not arm_obj.animation_data:\n    arm_obj.animation_data_create()\naction = bpy.data.actions.new(\"WalkCycle\")\narm_obj.animation_data.action = action\n\n# Keyframe thigh swing: back → neutral → forward\nthigh = arm_obj.pose.bones[\"Thigh.L\"]\nfor angle, frame in [(-30, 1), (0, 13), (30, 25)]:\n    thigh.rotation_euler = (math.radians(angle), 0, 0)\n    thigh.keyframe_insert(data_path=\"rotation_euler\", frame=frame)\n\nbpy.ops.object.mode_set(mode='OBJECT')\n```\n\n### 6. Create and animate shape keys\n\n```python\nimport bpy\n\nobj = bpy.data.objects[\"Head\"]\nmesh = obj.data\nif not mesh.shape_keys:  # Basis key required first\n    obj.shape_key_add(name=\"Basis\", from_mix=False)\n\nsmile = obj.shape_key_add(name=\"Smile\", from_mix=False)\nfor i, vert in enumerate(smile.data):\n    if i in [42, 43, 56, 57]:  # mouth corner vertices\n        vert.co.z += 0.02\n\n# Animate shape key value (0.0 → 1.0 → 0.0)\nsk = mesh.shape_keys.key_blocks[\"Smile\"]\nfor val, frame in [(0.0, 1), (1.0, 15), (0.0, 30)]:\n    sk.value = val\n    sk.keyframe_insert(data_path=\"value\", frame=frame)\n```\n\n### 7. Layer actions with the NLA editor\n\n```python\nimport bpy\n\narm_obj = bpy.data.objects[\"Rig\"]\nif not arm_obj.animation_data:\n    arm_obj.animation_data_create()\n# Push actions as NLA strips on separate tracks\ntrack1 = arm_obj.animation_data.nla_tracks.new()\ntrack1.name = \"Walk\"\nstrip1 = track1.strips.new(\"Walk\", start=1, action=bpy.data.actions[\"WalkCycle\"])\nstrip1.repeat = 4                    # loop 4 times\nstrip1.blend_type = 'REPLACE'        # REPLACE, COMBINE, ADD, SUBTRACT, MULTIPLY\n\ntrack2 = arm_obj.animation_data.nla_tracks.new()\ntrack2.name = \"Wave\"\nstrip2 = track2.strips.new(\"Wave\", start=25, action=bpy.data.actions[\"WaveHand\"])\nstrip2.blend_type = 'COMBINE'        # blend on top of walk\nstrip2.influence = 0.8               # partial blend\n\narm_obj.animation_data.action = None  # clear active action so NLA takes over\n```\n\n### 8. Add drivers for expression-based animation\n\n```python\nimport bpy\n\ndriver = bpy.data.objects[\"Cube\"].driver_add(\"location\", 2).driver  # drive Z location\ndriver.type = 'SCRIPTED'\ndriver.expression = \"sin(frame * 0.1) * 2\"\n# Add a variable that reads another object's transform\nvar = driver.variables.new()\nvar.name = \"ctrl\"\nvar.type = 'TRANSFORMS'\nvar.targets[0].id = bpy.data.objects[\"Controller\"]\nvar.targets[0].transform_type = 'LOC_X'\nvar.targets[0].transform_space = 'WORLD_SPACE'\ndriver.expression = \"ctrl * 3\"  # also works on shape keys via sk.driver_add(\"value\")\n```\n\n## Examples\n\n### Example 1: Bouncing ball with squash and stretch\n\n**User request:** \"Animate a ball bouncing with squash and stretch\"\n\n```python\nimport bpy\n\nbpy.ops.object.select_all(action='SELECT')\nbpy.ops.object.delete()\nbpy.ops.mesh.primitive_uv_sphere_add(radius=0.5, location=(0, 0, 3))\nball = bpy.context.active_object\nball.name = \"BouncingBall\"\n\nkeyframes = [  # (frame, z_pos, scale_x, scale_y, scale_z)\n    (1,  3.0, 1.0, 1.0, 1.0),    (12, 0.5, 1.0, 1.0, 1.0),     # fall\n    (15, 0.3, 1.3, 1.3, 0.6),    (18, 0.5, 0.85, 0.85, 1.2),   # squash + stretch\n    (30, 2.2, 1.0, 1.0, 1.0),    (42, 0.5, 1.0, 1.0, 1.0),     # apex + second fall\n    (45, 0.3, 1.2, 1.2, 0.7),    (55, 1.5, 1.0, 1.0, 1.0),     # smaller bounce\n    (62, 0.5, 1.0, 1.0, 1.0),                                    # settle\n]\nfor frame, z, sx, sy, sz in keyframes:\n    ball.location = (0, 0, z)\n    ball.keyframe_insert(data_path=\"location\", frame=frame)\n    ball.scale = (sx, sy, sz)\n    ball.keyframe_insert(data_path=\"scale\", frame=frame)\n\nfor fc in ball.animation_data.action.fcurves:\n    for kp in fc.keyframe_points:\n        kp.interpolation = 'BEZIER'\n\nbpy.context.scene.frame_end = 62\nbpy.ops.wm.save_as_mainfile(filepath=\"\u002Ftmp\u002Fbouncing_ball.blend\")\n```\n\n### Example 2: Arm rig with IK reaching for an object\n\n**User request:** \"Create a simple arm rig with IK and animate it reaching for a cube\"\n\n```python\nimport bpy\n\nbpy.ops.object.select_all(action='SELECT')\nbpy.ops.object.delete()\n\narm_data = bpy.data.armatures.new(\"ArmRig\")\narm_obj = bpy.data.objects.new(\"ArmRig\", arm_data)\nbpy.context.collection.objects.link(arm_obj)\nbpy.context.view_layer.objects.active = arm_obj\nbpy.ops.object.mode_set(mode='EDIT')\nprev = None\nfor name, head, tail in [(\"UpperArm\",(0,0,1.5),(0.6,0,1.5)),\n                          (\"Forearm\",(0.6,0,1.5),(1.2,0,1.5)),\n                          (\"Hand\",(1.2,0,1.5),(1.4,0,1.5))]:\n    b = arm_data.edit_bones.new(name)\n    b.head, b.tail = head, tail\n    if prev: b.parent, b.use_connect = prev, True\n    prev = b\nbpy.ops.object.mode_set(mode='OBJECT')\n\n# IK target + constraint\nbpy.ops.object.empty_add(type='PLAIN_AXES', location=(1.2, 0, 1.5))\nik_target = bpy.context.active_object\nik_target.name = \"IK_Hand\"\nbpy.context.view_layer.objects.active = arm_obj\nbpy.ops.object.mode_set(mode='POSE')\nik = arm_obj.pose.bones[\"Hand\"].constraints.new('IK')\nik.target, ik.chain_count = ik_target, 3\nbpy.ops.object.mode_set(mode='OBJECT')\n\n# Animate IK target reaching toward a cube\nbpy.ops.mesh.primitive_cube_add(size=0.3, location=(1.5, 0.5, 1.0))\nfor loc, frame in [((1.2,0,1.5),1), ((1.5,0.5,1.0),30), ((1.5,0.5,1.3),50)]:\n    ik_target.location = loc\n    ik_target.keyframe_insert(data_path=\"location\", frame=frame)\nfor fc in ik_target.animation_data.action.fcurves:\n    for kp in fc.keyframe_points:\n        kp.interpolation, kp.easing = 'BEZIER', 'EASE_IN_OUT'\nbpy.context.scene.frame_end = 50\nbpy.ops.wm.save_as_mainfile(filepath=\"\u002Ftmp\u002Farm_grab.blend\")\n```\n\n## Guidelines\n\n- `data_path` must match the RNA path exactly: `\"location\"`, `\"rotation_euler\"`, `\"scale\"`, `'[\"custom_prop\"]'`.\n- Armature workflow: Edit mode for bones (`edit_bones`), Pose mode for constraints and keyframes (`pose.bones`).\n- For IK, use Empty objects as targets. `chain_count=0` solves the entire chain to root.\n- Shape keys need a \"Basis\" key first. Animate via `key_blocks[\"Name\"].value` (0.0 to 1.0).\n- Interpolation: `CONSTANT` for hold\u002Fstep, `LINEAR` for mechanical, `BEZIER` with easing for organic motion.\n- Set `animation_data.action = None` to let NLA strips drive — an active action overrides NLA.\n- For walk cycles, keyframe one stride and use a Cycles F-Curve modifier or NLA repeat to loop.\n- Bake constraints\u002Fdrivers with `bpy.ops.nla.bake()` before export — other software cannot read them.\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fblender-animation",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":7,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill blender-animation",{"tool":40,"command":41},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill blender-animation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill blender-animation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fblender-animation\u002FSKILL.md",true,[],[49,58,67,76,82,88],{"skillNo":50,"name":51,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":21},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[55,56,57],"model","model hierarchy","model hierarchy skill",{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":21},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[64,65,66],"MCP","zoom","zoom mcp",{"skillNo":68,"name":69,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":21},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[73,74,75,65],"sdk","zoom apps sdk","apps",{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":21},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[78],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":21},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[84],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":21},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[90]]