Skip to main content

A fast and user-friendly library built on top of Autodesk Maya's OpenMaya library.

Project description

AL_omx

License

AL_omx is an open-source library that provides a thin wrapper around Maya OM2 which makes it easy to manipulate nodes, attributes and connections while retaining the API's performance:

QuickStart

Install AL_omx using mayapy -m pip install AL_omx, or by adding the root directory to sys.path. For more information on the installation, check out here.

The requirements of AL_omx:

Python Maya
3.7+ 2022+

Syntax

AL_omx uses object-oriented syntax:

    from AL import omx

    transform, locator = omx.createDagNode(
        "locator", nodeName="myLocShape", returnAllCreated=True
    )
    omx.createDGNode("time", nodeName="myTime")
    persp = omx.XNode("persp")
    perspShape = omx.XNode("perspShape")

    persp.visibility.setLocked(True)
    transform.t.set([2.0, 2.0, 2.0])
    print(f"locator worldMatrix: {transform.wm[0].get()}")
    locator.overrideEnabled.set(True)
    locator.overrideColor.set(14)

    persp.r.connectTo(transform.r)
    transform.sx.connectFrom(omx.XNode("time1").outTime)
    transform.r.disconnectFromSource()

    # ctrl+Z/shift+Z to undo & redo

Documentation

The full document source is available in the docs folder, you can generate the document yourself using sphinx, check out here for how to do it.

The full online documentation can be found at https://animallogic.github.io/AL_omx/

Here are some convenient entries:

Contribution & Feedback

For how to contribute to AL_omx, check out here. If you have any issues or feature suggestions, please feel free to submit a ticket in GitHub Issues.

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

AL_omx-1.0.4.tar.gz (298.9 kB view details)

Uploaded Source

Built Distribution

AL_omx-1.0.4-py3-none-any.whl (67.1 kB view details)

Uploaded Python 3

File details

Details for the file AL_omx-1.0.4.tar.gz.

File metadata

  • Download URL: AL_omx-1.0.4.tar.gz
  • Upload date:
  • Size: 298.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for AL_omx-1.0.4.tar.gz
Algorithm Hash digest
SHA256 cc65eb96733148f031f808bcde69c477af7043d1c68cdc3dff836408c13fe892
MD5 de47f5b6c51bddb4bb63fef13f8ad86f
BLAKE2b-256 6fa35f5ccf5309ec3f39ec4d4795f1d76f1e064876dee43c76ee74f5b16ec9fe

See more details on using hashes here.

File details

Details for the file AL_omx-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: AL_omx-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 67.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for AL_omx-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0f25b6de3ddf96c85036843cd78d94994c760d4f896440a31b0f430a0afd0590
MD5 021831b34d2e1aabc1e341746e1dbfb8
BLAKE2b-256 65ee0b5d1957797e76e20f71de79205e4edfb885c3e4d5765a6b371615122d1a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page