Beispiel #1
0
 def execute(self, context):
     selected_objects = _get_selected_objects(context)
     param = ((None, False, True)[int(self.mode)], self.use_skip,
              self.use_scale)
     count = sum(FnSDEF.bind(i, *param) for i in selected_objects)
     self.report({'INFO'}, 'Binded %d of %d selected mesh(es)' %
                 (count, len(selected_objects)))
     return {'FINISHED'}
Beispiel #2
0
def load_handler(dummy):
    from mmd_tools_local.core.sdef import FnSDEF
    FnSDEF.clear_cache()
    FnSDEF.register_driver_function()
Beispiel #3
0
 def execute(self, context):
     for i in _get_selected_objects(context):
         FnSDEF.unbind(i)
     return {'FINISHED'}
Beispiel #4
0
 def execute(self, context):
     for i in _get_selected_objects(context):
         FnSDEF.clear_cache(i)
     FnSDEF.clear_cache(unused_only=True)
     return {'FINISHED'}
Beispiel #5
0
def _toggleUseSDEF(self, context):
    root = self.id_data
    rig = mmd_model.Model(root)
    mute_sdef = not self.use_sdef
    for i in rig.meshes():
        FnSDEF.mute_sdef_set(i, mute_sdef)