Skip to content

Instantly share code, notes, and snippets.

@qiuwch
Created May 22, 2015 22:20
Show Gist options
  • Select an option

  • Save qiuwch/a631631ec6863c3597a2 to your computer and use it in GitHub Desktop.

Select an option

Save qiuwch/a631631ec6863c3597a2 to your computer and use it in GitHub Desktop.
Blender snippets
import bpy
from bpy import data as D
from bpy import context as C
from mathutils import *
from math import *
bones['forearm.fk.L']
#~ bpy.data.objects['Human'].pose.bones["forearm.fk.L"]
testBone = bones['forearm.fk.L']
testBone.y_axis
#~ Vector((0.5111535787582397, -0.683880627155304, -0.5206049680709839))
testBone.rotation_mode
#~ 'YZX'
bpy.data.objects
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment