Reference
locatorcreator package.
create_locator(name='')
Create a locator with the given name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name to give the locator. |
''
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
The name of the locator that was created. |
Source code in src/locatorcreator/example.py
6 7 8 9 10 11 12 13 14 15 | |
locatorcreator UI.
LocatorCreatorWindow
Bases: QDialog
A single-button window that creates a locator on click.
Source code in src/locatorcreator/ui.py
19 20 21 22 23 24 25 26 27 28 29 30 | |
maya_main_window()
Return Maya's main window as a QWidget.
Returns:
| Type | Description |
|---|---|
|
QtWidgets.QWidget: Maya's main window. |
Source code in src/locatorcreator/ui.py
9 10 11 12 13 14 15 16 | |
show()
Create and show the Locator Creator window.
Returns:
| Name | Type | Description |
|---|---|---|
LocatorCreatorWindow |
The window that was shown. |
Source code in src/locatorcreator/ui.py
33 34 35 36 37 38 39 40 41 | |