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

  1. 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.

Files for tpmayalib, version 0.0.17
Filename, size File type Python version Upload date Hashes
Filename, size tpmayalib-0.0.17-py3.6.egg (624.0 kB) File type Egg Python version 3.6 Upload date Hashes View
Filename, size tpmayalib-0.0.17.tar.gz (217.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page