Skip to main content

Maya implementation for tpDccLib and tpQtLib. Utils functions to work with Maya Python APIs.

Project description

https://img.shields.io/github/license/tpoveda/tpMayaLib.svg

Maya implementation for tpDccLib and tpQtLib packages.

Also, this module contains a lot of utilities functions and classes to work with Maya Python APIs (cmds and OpenMaya)

Installation

Manual

1. Clone/Download tpMayaLib anywhere in your PC (If you download the repo, you will need to extract the contents of the .zip file). 2. Copy tpMayaLib folder located inside source folder in a path added to sys.path

Automatic

Automatic installation for tpMayaLib is not finished yet.

Usage

Initialization Code

1. If tpDccLib or tpQtLib packages are being used, tpMayaLib will be automatic imported during the initialization of those packages. 2. If tpDccLib and tpQtLib are not found in your sys.path, you will need to initialize manually tpMayaLib.

import tpMayaLib
tpMayaLib.init()

Reloading

For development purposes, you can enable reloading system, so you can reload tpMayaLib sources without the necessity of restarting your Python session. Useful when working with DCCs.

  1. If tpDccLib and tpQtLib packages are being used, tpMayaLib will be automatic reload by tpDccLib and tpQtLib reload systems.

  2. If tpDccLib and tpQtLib are not found, you will need to reload tpMayaLib manually.

import tpMayaLib
reload(tpMayaLib)
tpMayaLib.init(True)

Enabling debug log

By default, tpMayaLib logger only logs warning messages. To enable all log messages you can set TPMAYALIB_DEV environment variables to ‘True’

import os

os.environ['TPMAYALIB_DEV'] = 'True'
import tpMayaLib
tpMayaLib.init()

Project details


Download files

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

Source Distribution

tpmayalib-0.0.10.tar.gz (197.9 kB view details)

Uploaded Source

Built Distribution

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

tpmayalib-0.0.10-py3.6.egg (561.7 kB view details)

Uploaded Egg

File details

Details for the file tpmayalib-0.0.10.tar.gz.

File metadata

  • Download URL: tpmayalib-0.0.10.tar.gz
  • Upload date:
  • Size: 197.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.7

File hashes

Hashes for tpmayalib-0.0.10.tar.gz
Algorithm Hash digest
SHA256 e14c952ea104673e37846a6ee25f5332bd602abb592759ee121133e64ed22bd4
MD5 2268167f7e3c19a7a6555ca17098b0eb
BLAKE2b-256 3bfd89c22bc3438f7916fc6f5e60dd04dd9df15df78bd9eb38d0a416b8952039

See more details on using hashes here.

File details

Details for the file tpmayalib-0.0.10-py3.6.egg.

File metadata

  • Download URL: tpmayalib-0.0.10-py3.6.egg
  • Upload date:
  • Size: 561.7 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.7

File hashes

Hashes for tpmayalib-0.0.10-py3.6.egg
Algorithm Hash digest
SHA256 7658ff78d4ae8c94aff5f21d8dc66decfa9200560b95040ec768ac82f4b0e179
MD5 823c0588d5182fe1ca67feacc6b9033f
BLAKE2b-256 bbe323b0f9f8ba636732b5eb9f1af73cbff62fcd5f173101f4c7ec511eab5145

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