Open enzyme69 opened 5 years ago
ob.location.z = abs ( sin (time speed) ) amp; ob.location.y = forwardPos
Pose Bone Chain (collecting and driving pose bones) with Expression Node...
Pose Bones new matrix = get rest pose invert matrix and offset
Inverting Pose Bone Matrix (reset), then assigning matrix back with new position, rotation, etc.
AN Node to keyframe every pose bone, you will need this one day, I guarantee...
INPUT boolean "record" object "armature"
Ensure your bone armature is "clear parent" so they can move and also you need to use Euler Rotation (it depends).
import bpy
if record:
for p_bone in object.pose.bones:
p_bone.keyframe_insert("rotation_euler", frame = bpy.context.scene.frame_current)
p_bone.keyframe_insert("location", frame = bpy.context.scene.frame_current)
Ensure you clear parent armature and also set rotate euler... there might be case when bone might wiggle because of gimbal (?)
Bouncing Suzanne via Expression node...