Skip to main content

Library for character animation

Project description

example code 1 (fbx loading).

import os,sys,pdb,math
from libcalab import *

this=RE.createMainWin() # this is necessary before using libcalab


skelFile='../../Mixamo/fbx_withSkin/bigvegas_Walking.fbx' 
skinScale=1

fbx=RE.FBXloader(skelFile, skinScale=skinScale, useTexture=True, simplifyMesh=False)

loader=fbx.loader
motion=fbx.loader.mMotion

print(loader)
lua.out(loader) #  print skeleton using lua (see console).


pdb.set_trace()

example code 2 (bvh loading).

import os, sys, pdb, math, random
from libcalab import *
import numpy as np
import copy

this=RE.createMainWin(sys.argv)

loader1=RE.createMotionLoaderExt('../Resource/motion/woody/wd2_2foot_walk_turn2.bvh')
mMotion=loader1.mMotion

# pose editing using quaternions
lua.out(loader1) #  print skeleton using lua (see console).
ri1=loader1.getRotJointIndexByName('LeftForeArm')
pose1.rotations(ri1).setRotation(m.vector3(0,1,0), math.radians(-90))


# pose editing using euler angles
loader1.setPose(pose2)
dof2=loader1.getPoseDOF()

print(dof2.array)
# The two lines above set and get the quaternions (pose2) in the loader to convert them into Euler angles (dof).
# In other words, pose2 and dof2 represent the same pose but in different representations.
loader1_relbow=loader1.getTreeIndexByName('RightForeArm')
rindex2_start=loader1.dofInfo.startR(loader1_relbow)
rindex2_end=loader1.dofInfo.endR(loader1_relbow)

print(loader1.bone(loader1_relbow).getRotationalChannels())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

libcalab-0.0.6-cp312-cp312-win_arm64.whl (4.5 MB view details)

Uploaded CPython 3.12Windows ARM64

libcalab-0.0.6-cp312-cp312-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.12Windows x86-64

libcalab-0.0.6-cp312-cp312-macosx_13_0_arm64.whl (7.9 MB view details)

Uploaded CPython 3.12macOS 13.0+ ARM64

File details

Details for the file libcalab-0.0.6-cp312-cp312-win_arm64.whl.

File metadata

  • Download URL: libcalab-0.0.6-cp312-cp312-win_arm64.whl
  • Upload date:
  • Size: 4.5 MB
  • Tags: CPython 3.12, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for libcalab-0.0.6-cp312-cp312-win_arm64.whl
Algorithm Hash digest
SHA256 d75f60b081e3390197955417e3ca146cd7275b0d68906983eca45808b375c18f
MD5 2af454cf9ab4d1fc65abf0ff2bd976d4
BLAKE2b-256 c1a8880d4e858c48e5764e368fc7cb7bab2e1abb7d7411c260c41613f14c782c

See more details on using hashes here.

File details

Details for the file libcalab-0.0.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: libcalab-0.0.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 9.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for libcalab-0.0.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 739f6d9b25f6490bf1c817f7e7010331511e2049ab9f40ea80a1e983aed3b976
MD5 6c874758cb77c72990130d692a063ecc
BLAKE2b-256 691f4042c5c700b0aebc448bd2e081123a7557e9820cf710f93a641d12ced063

See more details on using hashes here.

File details

Details for the file libcalab-0.0.6-cp312-cp312-macosx_13_0_arm64.whl.

File metadata

File hashes

Hashes for libcalab-0.0.6-cp312-cp312-macosx_13_0_arm64.whl
Algorithm Hash digest
SHA256 5d836bbdced459969104c2169b7c81926b31612cc33829f7c3c95c34c6850952
MD5 c1088e8aba79338231f06a7eea70c4b5
BLAKE2b-256 c044a3eeac230879c90dc30c76f70eb1d3b84561152eabbf1eabfb5e4ffacd0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page