|
setChannelsetChannel(name, loc, size, quat)Note:An
armature is made of bone(s). By default, the 1st bone is
named
"Bone", 2nd is named "Bone.001", 3rd is named "Bone.002", etc.
The channel name is the name of the bone.
Sets the bone channel. name: name of the bone Type:
string
loc: location of bone. X, Y and Z. Resting position of bone = [0.0, 0.0, 0.0] Type:
list [ lx, ly, lz]
ie [ 0.0, 0.0, 0.0]
size: scale of the bone. X, Y and Z. Starting scale is [1.0, 1.0, 1.0] Type: list
[sX, sY, sZ]
ie [ 1.0, 1.0, 1.0]
quat: rotation of bone in Quaternion form Type: list
[qW, qX, qY, qZ]
examples: [ 1.0, 0.0, 0.0, 0.0] =
starting rotation
[0.707, 0.0, 0.0, 0.707] = rotate 90 degrees
around z-axis
Sample Code
|