Skip to main content

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())

Other examples which use ogre-python for rendering

https://github.com/taesoobear/libcalab_examples

Other examples which use libcalab-ogre3d (ogre-next) for much faster rendering

https://github.com/taesoobear/IPCDNNwalk

Release files for libcalab 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for libcalab 0.3.4
File Interpreter ABI Platform
libcalab-0.3.4-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details
libcalab-0.3.4-cp312-cp312-macosx_14_0_arm64.whl CPython 3.12 CPython 3.12 macOS 14.0+ ARM64 Details

Total release size: 19.9 MB

Release files / libcalab-0.3.4-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL libcalab-0.3.4-cp312-cp312-manylinux_2_39_x86_64.whl
Size 12.0 MB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
a4a0f61291a3416be30cb6b36c4e91dd6f284d969658b123937794eec11f4fc1
BLAKE2b-256 checksum
How to use checksums
202723c161c3cffa2fb66273e423fa86579d0b679d70aa3f8741e1a1221379dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / libcalab-0.3.4-cp312-cp312-macosx_14_0_arm64.whl

Download URL libcalab-0.3.4-cp312-cp312-macosx_14_0_arm64.whl
Size 8.0 MB
Tags CPython 3.12 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
c86b27719c4bc73383f562772c3ef12064c4ffa98d405646036bb503ba07fa2a
BLAKE2b-256 checksum
How to use checksums
02af7c5c2aa8d8d03d93d00d17c7fd880352c1049045c0b98784df7ff4efe47f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.2.8

1 release file

0.2.7

1 release file

0.2.4

3 release files

0.1.2

2 release files

0.1.1

1 release file

0.1.0

1 release file

0.0.9

3 release files

0.0.8

2 release files

0.0.6

3 release files

0.0.5

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page