Skip to content

martinlanton/sym_mesh

Repository files navigation

Features to implement

  • build symmetry table (local space vertices position)
  • build symmetry table (topology)
  • Geometry operations with a spinbox in addition to the button
  • Add click/drag and ctrl/click/drag events to spinboxes
  • Geometry operations from target or from selection
  • Adding coloring of geometry operations based on the active mode (from selection or from target)
  • testing and push reject on github
  • Pip integration

Maya sym mesh

This is a Maya project for mesh modification, including unittest setup

Installation

To install this package for your local maya, you can use the following command in a TERMINAL in ADMINISTRATOR MODE:

mayapy -m pip install {package location} -r {package location}/requirements.txt

Where {package location} represents the location you downloaded the package, for example :

mayapy -m pip install D:/python/sym-mesh -r D:/python/sym-mesh/requirements.txt

If you have more than one maya version installed, you will need to replace mayapy with the full path to your mayapy executable file, like so :

"C:\Program Files\Autodesk\Maya2022\bin\mayapy.exe" -m pip install D:/python/sym-mesh -r D:/python/sym-mesh/requirements.txt

Note that you will have to put the path in quotation marks if there are any blank spaces in it as Windows can't handle those.

Launch

You can currently launch the tool with the current command :

from sym_mesh.gui import startup

startup.startup()

Development

How to install coverage on Maya?

In short, on Windows, from an administrator command line :

mayapy -m pip install --ignore-installed coverage

The ignore-install flag is a nice thing to know when you want to ensure you get the latest version or when the package in question is already installed somewhere else.

On both macOS and Linux, the following command can be used :

sudo ./mayapy -m pip install <flags> <package>

For more information, the coverage documentation can be found here :

https://coverage.readthedocs.io/en/6.4.3/cmd.html#

How to run coverage on Maya?

Coverage can be run on maya by calling the coverage executable with the maya interpreter, this would look something like this :

C:\Program Files\Autodesk\Maya2022\bin\mayapy "C:\Program Files\Autodesk\Maya2022\Python37\Scripts\coverage.exe" run --source=src -m unittest

It is important that the coverage executable be in quotes (") so that the interpreter can read it as a path.

Then the html report can be generated with the following command (that you can add to the tox commands section of the environments to run):

coverage html -d coverage_html

About

Mesh symmetry tool for Autodesk Maya

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages