Skip to main content

Manipulate Maya 3D Viewports.

Project description

Documentation Status Latest Version

MVP - Maya Viewport API

I really needed this…

This module exists to unify and pythonify the various commands and apis necessary to manipulate Maya’s 3D Viewports. These include, hardwareRenderGlobal attributes, modelPanel and modelEditor commands, as well as some key features of OpenMayaUI’s M3dView class.

from mvp import Viewport

view = Viewport.active()
view.camera = 'top'
view.background = 0.5, 0.5, 0.5
view.nurbsCurves = False

Features

  • Unified api for manipulating Maya Viewports

  • Get or set viewport state (all attributes). Making it easy to restore a Viewport to a previous configuration.

  • Easily set focus and playblast Viewports. Much more consistent than using active view.

  • Draw text in Viewports using QLabels.

  • Show identifiers in viewports, making it easy to grab the correct viewport at a glance.

Get MVP

PyPi

MVP is available through the python package index as mvp.

pip install mvp

Distutils/Setuptools

git clone git@github.com/danbradham/mvp.git
cd mvp
python setup.py install

Documentation

For more information visit the docs.

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

mvp-0.4.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

mvp-0.4.2-py2-none-any.whl (14.4 kB view details)

Uploaded Python 2

File details

Details for the file mvp-0.4.2.tar.gz.

File metadata

  • Download URL: mvp-0.4.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mvp-0.4.2.tar.gz
Algorithm Hash digest
SHA256 80a27792ec9b9d3748d11788adb91a6af1a03cf7e0ecf80f349956cf468a4f75
MD5 05b3df701d1a63d2132317d786652d8a
BLAKE2b-256 1e767f4a58a8862ca77d1b9d901cebbfb2a27c71851c6e2a577f5d9f5b7223a2

See more details on using hashes here.

File details

Details for the file mvp-0.4.2-py2-none-any.whl.

File metadata

  • Download URL: mvp-0.4.2-py2-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mvp-0.4.2-py2-none-any.whl
Algorithm Hash digest
SHA256 20558483ea941fbcc513f3a6b0073f8965d5a267e0735d146b40c142e5ec08ee
MD5 54260f3f7c8c991c3757cfc85bdcaa3b
BLAKE2b-256 db09659596dd61d970ed8093a2fff992179d5fe9e3a0ed24bfcfb16e9d1ae623

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