Sunday, 26 July 2020

Python Learning in Blender- Sine expression to Drive Bone Rotation


A quick python learning exercise in blender:
  1. Scripted various controls with arguments for names/limits/shape etc
  2. Scripted a bone chain definition with arguments for names/numberOfBones/transformPlacement/axis/O.O.R etc
  3. Created a script to iterated through the bones and deliver a sine expression using the controllers Y transform as input variables for the bones XYZ rotations - sin(frame*"freq+...etc")
Links:
Now - the expression needs a little work (ie: clamp(#,#,#) etc), before I can expand upon it.