Commit 987082c1 authored by Bruno Laurencich's avatar Bruno Laurencich

add comments

parent 3f310a7b
......@@ -72,12 +72,17 @@ class Armature_Handler:
if not armature_object or armature_object.type != "ARMATURE":
raise Error("There's no Armature in the scene.")
#The armature object
self.object = armature_object
#The children meshes (most of the time the ones deformed by the armature)
self.meshes = [ch for ch in armature_object.children if ch.type== "MESH"]
#Helpers are objects in the scene that are used to visualize the raw attitude of the K-Ceptors
if helpers:
self.helpers = {ob.name: ob for ob in helpers.children }
#Blender bones, these two collections refer to the same bones, but contain different information (edit mode - pose mode)
self.pose = self.object.pose.bones
self.bones = self.object.data.bones
#A dict to store our own collection of bones
self.arm_repr = {}
#Find the data.(root_bone), and extract the starting local location
self.root_bone = find_root_bone(self.bones)
......@@ -113,6 +118,7 @@ class Armature_Handler:
for m in self.meshes: m.hide = True
#the message is dislayed on the Blender GUI
self.message = " Chordata operator | Calibrating... Press ENTER to start posing "
......
......@@ -100,7 +100,7 @@ class Chord_Clean_Anims(bpy.types.Operator):
class Chord_Receive_OSC(bpy.types.Operator):
"""Receives the capture and putsit on an armature"""
"""Receives the capture and puts it on an armature"""
bl_idname = "chordata.receive"
bl_label = "Chordata: Receive pose Data"
bl_options = {'REGISTER'}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment