Skip to content

Circlelizer is a plugin for Maya which is written in Python with Maya API 2.0. It generates a circle from a given selection.

License

Notifications You must be signed in to change notification settings

B4rtware/circlelizer-maya

Repository files navigation

circlelizer-maya

cover image for circlelizer-maya

Circlelizer is a plugin for Maya which is written in Python with Maya API 2.0. It generates a circle from a given selection. You can either let the program calculate all parameters or define your own.


Note: use this plugin at you own risk. Save your project each time before you are using it. In my test cases I hadn't any real problems but I can't test every little edge case. Keep in mind that this plugin is still in development.

example

GUI

gui

its also possible to deactive the style:

gui

Changelog

Latest Versions:

circlelize v0.99 circlelizerInterface v2.0

v0.99 Changelog

  • support for Maya 2020

v0.98 Changelog

  • merged version files
  • updated mod file for merged Maya files (important: use the new mod file)
  • added projection on mesh
  • improved border edge extraction
  • removed temporary extract border flag

Installation Instructions

Clone the repo and place the folder Circlelizer to your prefered location. An icon for the shelf is inside the icons folder (icon.png).

Replace the <enter here full path> with the full path to your circlelizer folder in the circlelizer.mod file.

Now, copy circlelizer.mod into:

  • users/<yourname>/documents/maya/modules - for any maya version
  • programs/autodesk/maya<version>/modules - for the specific maya version

Inside Maya you need to go to Windows -> Settings/Preferences -> Plug-in Manager search for the circlelizer tab and load it manually and/or tick auto load.

Once it has successfully loaded the plug-in you can use any commands from it.


The _ui_* folders are used to have an isolated tested enviroment for the error und overall gui without the need to start maya.

Usage

In Mel:

circlelize or circlelizerInterface

In Python:

import maya.cmds as cmds
cmds.circlelize() or
cmds.circlelizerInterface()

Commands

It includes two commands circlelize(...) and circlelizerInterface(...) the first one is the actual tool and the second one is used for loading the graphical interface.

circlelize supports:

  • radius, r float
    the radius of the circle
  • degree, d float
    defines the angle of the circle (0-360°) experimental needs a revamp
  • midPoint, m (float, float, float)
    defines the center of the circle
  • circleNormal, cn (float, float, float)
    the normal which will describe the circle facing direction
  • projection, p bool
    projects the circle onto the mesh it was created from

circlelizerInterface supports:

  • slideInput, si bool
    enable/disable custom widget
  • style, s bool
    enable/disable stylesheet
  • logo, l bool
    enable/disable logo widget

If anyone wonders about the "slideInput" it is a custom widget which I have written. Everything it does is imitating the normal input from Maya where you can drag your mouse to define a number.

Note: SlideInput widget does not work with 2016.5 and below!

Supported Maya Versions

  • Maya 2020 (tested)
  • It should work till version Maya 2013 (Please give me a feedback on versions 2013 - 2018)

Thanks!

LifeArtist/B4rtware

About

Circlelizer is a plugin for Maya which is written in Python with Maya API 2.0. It generates a circle from a given selection.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published