Changeset View
Changeset View
Standalone View
Standalone View
rigify/rigs/experimental/super_chain.py
| Context not available. | |||||
| const = owner_pb.constraints.new(constraint['constraint']) | const = owner_pb.constraints.new(constraint['constraint']) | ||||
| const.target = self.obj | const.target = self.obj | ||||
| # filter contraint props to those that actually exist in the current | # filter constraint props to those that actually exist in the current | ||||
| # type of constraint, then assign values to each | # type of constraint, then assign values to each | ||||
| for p in [k for k in constraint.keys() if k in dir(const)]: | for p in [k for k in constraint.keys() if k in dir(const)]: | ||||
| setattr(const, p, constraint[p]) | setattr(const, p, constraint[p]) | ||||
| Context not available. | |||||