Changeset View
Changeset View
Standalone View
Standalone View
mocap/mocap_constraints.py
| Context not available. | |||||
| if m_constraint.type == "floor" and m_constraint.targetMesh: | if m_constraint.type == "floor" and m_constraint.targetMesh: | ||||
| real_constraint.mute = True | real_constraint.mute = True | ||||
| real_constraint.owner_space = "WORLD" | real_constraint.owner_space = "WORLD" | ||||
| #calculate the positions thoughout the range | #calculate the positions throughout the range | ||||
| s, e = m_constraint.s_frame, m_constraint.e_frame | s, e = m_constraint.s_frame, m_constraint.e_frame | ||||
| s_in, s_out = m_constraint.smooth_in, m_constraint.smooth_out | s_in, s_out = m_constraint.smooth_in, m_constraint.smooth_out | ||||
| s -= s_in | s -= s_in | ||||
| Context not available. | |||||
| locBake(s_frame, e_frame, simpleBake) | locBake(s_frame, e_frame, simpleBake) | ||||
| #Calls the baking function and decativates releveant constraints | #Calls the baking function and decativates relevant constraints | ||||
| def bakeConstraints(context): | def bakeConstraints(context): | ||||
| obj = context.active_object | obj = context.active_object | ||||
| bones = obj.pose.bones | bones = obj.pose.bones | ||||
| Context not available. | |||||