{"id":25013993,"url":"https://github.com/adn-devtech/maya-locator","last_synced_at":"2025-04-12T22:06:59.554Z","repository":{"id":13841638,"uuid":"16538706","full_name":"ADN-DevTech/Maya-Locator","owner":"ADN-DevTech","description":"Maya Locator Library (Example) - Plug-in of the Month, October 2012","archived":false,"fork":false,"pushed_at":"2014-10-27T11:06:01.000Z","size":208,"stargazers_count":27,"open_issues_count":1,"forks_count":15,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-04-12T22:06:33.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ADN-DevTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-05T08:11:00.000Z","updated_at":"2024-05-13T12:58:38.000Z","dependencies_parsed_at":"2022-09-23T15:41:11.884Z","dependency_job_id":null,"html_url":"https://github.com/ADN-DevTech/Maya-Locator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADN-DevTech%2FMaya-Locator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADN-DevTech%2FMaya-Locator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADN-DevTech%2FMaya-Locator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ADN-DevTech%2FMaya-Locator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ADN-DevTech","download_url":"https://codeload.github.com/ADN-DevTech/Maya-Locator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637769,"owners_count":21137538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-05T07:17:07.083Z","updated_at":"2025-04-12T22:06:59.527Z","avatar_url":"https://github.com/ADN-DevTech.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Maya Locator Library - Plug-in of the Month, October 2012\r\n=======================================\r\n\r\nDescription\r\n-----------\r\n\r\nThis plug-in allows users to create different shapes of locators other than Maya’s internal built-in locator. It provides a custom command, which has 5 built-in flags, \r\nallowing users to create 4 different basic types of locator, specifically an oval-shape locator, a square-shape locator, a cube-shape locator and a sphere-shape locator.\r\n\r\nIt also provide a 'custom' locator which allow the use to define its own locator shape. There is 2 functional modes for the 'custom'.\r\n\r\n- Shape mode\r\n\r\n   The user can define a simple shape (2d or 3d) as a continuous closed polyline. See the shape.txt in the Samples folder for details.\r\n   This mode accepts files with a serie of 3d coordinates X, Y, Z\r\n\r\n- Solid mode\r\n\r\n   The user can define a simple solid as a serie of triangles. See the pyramid.txt in the Samples folder for details. This mode accepts files \r\n   with a serie of 3d coordinates X, Y, Z for vertices, and then a serie of triangle vertex index defined above.\r\n\r\n   \r\nExecute “help LocatorLibCmd” for more details.\r\n\r\n\r\n'Shape mode' file format description\r\n------------------------------------\r\n\r\nThis is the simple 'Shape mode' file structure.\r\n\r\n\u003cNNN\u003e\t\t\t\t\t\t\t# Number of vertex (integer)\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #0 Vertex X, Y, Z coordinates (float)\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #1 Vertex X, Y, Z coordinates (float)\r\n...\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #NNN Vertex X, Y, Z coordinates (float)\r\n0\t\t\t\t\t\t\t\t# \u003cnull\u003e to terminate\r\n\r\nWe usually recommend working with a unit size shape, but this is not limited to any size.\r\n\r\n\r\n'Solid mode' file format description\r\n------------------------------------\r\n\r\nThis is the simple 'Solid mode' file structure.\r\n\u003cNNN\u003e\t\t\t\t\t\t\t# Number of vertex (integer)\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #0 Vertex X, Y, Z coordinates (float)\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #1 Vertex X, Y, Z coordinates (float)\r\n...\r\n\u003cFFF\u003e \u003cFFF\u003e \u003cFFF\u003e\t\t\t\t# #NNN Vertex X, Y, Z coordinates (float)\r\n\u003cTTT\u003e\t\t\t\t\t\t\t# Number of triangles (integer)\r\n\u003cIII\u003e \u003cIII\u003e \u003cIII\u003e\t\t\t\t# 1st Triangle Vertex indexes (integer)\r\n\u003cIII\u003e \u003cIII\u003e \u003cIII\u003e\t\t\t\t# 2nd Triangle Vertex indexes (integer)\r\n...\r\n\u003cIII\u003e \u003cIII\u003e \u003cIII\u003e\t\t\t\t# TTT Triangle Vertex indexes (integer)\r\n\r\nWe usually recommend working with a unit size shape, but this is not limited to any size.\r\nThe Vertex index starts at index 0. The triangle' vertex index runs from 0 to NNN-1\r\n\r\n\r\nSystem Requirements\r\n-------------------\r\nThis plug-in has been tested with Autodesk Maya 2013 and 2013 Extension. \r\n\r\nThis plug-in is a C++ based plug-in, so it does require compilation in case you want to modify it or move to a newer Maya version. It works on Window 32bit/64bit, Mac OS, and Linux.\r\n\r\n\r\nInstallation\r\n------------\r\nThe following steps are for using the plug-in with Autodesk Maya 2013 or 2013 Extension. If you are using Maya 2013 Extension, please \r\nconsider the release number as \"2013.5\" in the paths listed below.  \r\n\r\n1. Create a directory structure like this:\r\n\r\n    -- myDirectory  --+-- plug-ins\r\n\t                              +-- scripts\r\n\r\n2. Copy the scripts folder into your created directory.\r\n\r\n3. Copy the plug-in binary into the plug-ins folder (.mll for windows, .bundle for OSX, .so for Linux)\r\n\r\n4. Create a module file. For this go into:\r\n\r\n    Windows 7\r\n    C:\\users\\\u003cyour login\u003e\\Documents\\maya\\\u003cversion\u003e[.5][-x64]\\modules\r\n\r\n    MacOS\r\n    /Users/\u003cyour login\u003e/Library/Preferences/Autodesk/maya/\u003cversion\u003e[.5]-x64/modules\r\n\r\n    Linux\r\n    /home/\u003cyour login\u003e/maya/modules\r\n    or /home/\u003cyour login\u003e/maya/2013[.5]-x64/modules\r\n\r\n4. Edit the new LocatorLib.mod file in a text editor and modify the path \u003cmypath\u003e and \u003cversion\u003e, to reflect the location where you copied the files.\r\n\r\n5. Once installed, the \"LocatorLib\" plug-in will be available in your Maya plug-in manager. Open the plug-in manager, load\r\nthe plug-in, and select the 'Auto load' option. The plug-in manager can be found in:\r\n      -\u003eWindow-\u003eSettings/Preferences/Plug-in manager\r\n\r\n\t  \r\nUsage\r\n-----\r\nInside Maya, call the command 'LocatorLibCmd' with one of the following options:\r\n  -o or -oval to create an oval locator\r\n  -s or -square to create a square locator\r\n  -cu or -cube to create a cube locator\r\n  -sp or -sphere to create to create a sphere locator\r\n  -c or -custom to create a custom locator\r\n\r\nYou can also create an instance of the node locator by using the MEL command 'createNode'. I.e.:\r\n  createNode ovalLocator;\r\n  createNode squareLocator;\r\n  createNode cubeLocator;\r\n  createNode sphereLocator;\r\n  createNode customLocator;\r\n\r\n  \r\nUninstallation\r\n--------------\r\nSimply removing the \"LocatorLib.mod\" files from your system folder, and delete the plug-in module folder will uninstall the plug-in.\r\n\r\nAuthor\r\n------\r\nThis plug-in was written by Naiq Weng and Cyrille Fauvel from the Autodesk Developer Network team. \r\n\r\n\r\nFurther Reading\r\n---------------\r\nFor more information on developing with Maya, please visit the [Maya Developer Center at http://www.autodesk.com/developmaya](http://www.autodesk.com/developmaya)\r\n\r\nFeedback\r\n--------\r\nEmail us at labs.plug-ins@autodesk.com with feedback or requests for enhancements.\r\n\r\n\r\nLicense\r\n--------\r\nThis sample is licensed under the terms of the [MIT License](http://opensource.org/licenses/MIT). Please see the [LICENSE](LICENSE) file for full details.\r\n\r\n\r\nRelease History\r\n---------------\r\n\r\n1.0    Original release                     (October 1, 2012)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadn-devtech%2Fmaya-locator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadn-devtech%2Fmaya-locator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadn-devtech%2Fmaya-locator/lists"}