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
Metadata
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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 for libcalab-0.3.4-cp312-cp312-manylinux_2_39_x86_64.whl |
| libcalab-0.3.4-cp312-cp312-macosx_14_0_arm64.whl | CPython 3.12 | CPython 3.12 | macOS 14.0+ ARM64 | Details for libcalab-0.3.4-cp312-cp312-macosx_14_0_arm64.whl |
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
|
Security for libcalab 0.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.