Beispiel #1
0
  def handle_source(self, msg):
    if not self.confentry["enabled"]:
      return

    # Apply shapekeys
    meshname = self.confentry["binding"]["meshname"]
    for i in range(len(msg.m_coeffs)):
      shapename = ShapekeyStore.getString(i)
      bpy.data.meshes[meshname].shape_keys.key_blocks[shapename].value = msg.m_coeffs[i]

    # Process single binds
    for processor in self.singlebind_processors:
      processor(msg)
    def handle_source(self, msg):
        if not self.confentry["enabled"]:
            return

        # Apply shapekeys
        meshname = self.confentry["binding"]["meshname"]
        for i in range(len(msg.m_coeffs)):
            shapename = ShapekeyStore.getString(i)
            bpy.data.meshes[meshname].shape_keys.key_blocks[
                shapename].value = msg.m_coeffs[i]

        # Process single binds
        for processor in self.singlebind_processors:
            processor(msg)