Esempio n. 1
0
def constraints_(object_, type_, mo_):
    items, targets = _transform.divide_in_two(object_)
    consts_ = []
    for i, item in enumerate(items):
        const_ = constraint_(item, targets[i], type=type_, mo=mo_)
        consts_.append(const_)
    return consts_
Esempio n. 2
0
 def connect_pairBlend(self, items_, target_, PRBL_list, BLCL_list):
     items, targets = _transform.divide_in_two(items_)
     for i, item in enumerate(items):
         _connect.connect_attrs([item, PRBL_list[i]], 't', 'it1')
         _connect.connect_attrs([item, PRBL_list[i]], 'r', 'ir1')
         _connect.connect_attrs([item, BLCL_list[i]], 's', 'c2')
         _connect.connect_attrs([targets[i], PRBL_list[i]], 't', 'it2')
         _connect.connect_attrs([targets[i], PRBL_list[i]], 'r', 'ir2')
         _connect.connect_attrs([targets[i], BLCL_list[i]], 's', 'c1')
         _connect.connect_attrs([PRBL_list[i], target_[i]], 'ot', 't')
         _connect.connect_attrs([PRBL_list[i], target_[i]], 'or', 'r')
         _connect.connect_attrs([BLCL_list[i], target_[i]], 'output', 's')
Esempio n. 3
0
 def connect_pairBlend(self, items_, target_, PRBL_list, BLCL_list):
     items, targets = _transform.divide_in_two(items_)
     for i,item in enumerate(items):
         self.connect_attrs(ls(item, PRBL_list[i]), 't', 'it1')
         self.connect_attrs(ls(item, PRBL_list[i]), 'jointOrient', 'ir1')
         self.connect_attrs(ls(item, BLCL_list[i]), 's', 'c2')
         self.connect_attrs(ls(targets[i], PRBL_list[i]), 't', 'it2')
         self.connect_attrs(ls(targets[i], PRBL_list[i]), 'jointOrient', 'ir2')
         self.connect_attrs(ls(targets[i], BLCL_list[i]), 's', 'c1')
         self.connect_attrs(ls(PRBL_list[i], target_[i]), 'ot', 't')
         self.connect_attrs(ls(PRBL_list[i], target_[i]), 'or', 'jointOrient')
         self.connect_attrs(ls(BLCL_list[i], target_[i]), 'output', 's')
Esempio n. 4
0
 def connect_attrs(self, object_, output, input):
     items, targets = _transform.divide_in_two(object_)
     for i, item in enumerate(items):
         _connect.connect_attr(item, output, targets[i], input)
Esempio n. 5
0
def matrixConsts(object_, type_, **kwargs):
    items, targets = _transform.divide_in_two(object_)
    for i,target in enumerate(targets):
        matrixConst(items[i], target, type_, **kwargs)