├── Sources
├── LocatorLib
│ ├── Root.rc
│ ├── LocatorLib-5.vcxproj.user
│ ├── LocatorLib.vcxproj.user
│ ├── pyramid.txt
│ ├── shape.txt
│ ├── Resource.h
│ ├── Release.props
│ ├── StdAfx.cpp
│ ├── Debug.props
│ ├── Linux2013.5
│ │ ├── buildrules
│ │ ├── linux_plugin.map
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── Linux2013
│ │ ├── buildrules
│ │ ├── linux_plugin.map
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── Linux2014
│ │ ├── buildrules
│ │ ├── linux_plugin.map
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── Mac2013.5
│ │ ├── buildrules
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── Mac2013
│ │ ├── buildrules
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── Mac2014
│ │ ├── buildrules
│ │ ├── Makefile
│ │ └── buildconfig
│ ├── LocatorLibCmd.h
│ ├── Shape.h
│ ├── plugin.props
│ ├── Autodesk.maya-2013.props
│ ├── Autodesk.maya-2014.props
│ ├── Autodesk.maya-2013-5.props
│ ├── StdAfx.h
│ ├── LocatorLibBase.cpp
│ ├── LocatorLibCmd.cpp
│ ├── LocatorLibBase.h
│ ├── LocatorLib.cpp
│ ├── ovalLocator.h
│ ├── cubeLocator.h
│ ├── squareLocator.h
│ ├── sphereLocator.h
│ ├── customLocator.h
│ ├── LocatorLib-5.vcxproj.filters
│ ├── LocatorLib2014.vcxproj.filters
│ ├── LocatorLib.vcxproj.filters
│ ├── Shape.cpp
│ ├── LocatorLib2014.vcxproj
│ ├── LocatorLib.vcxproj
│ ├── LocatorLib-5.vcxproj
│ ├── customLocator.cpp
│ ├── squareLocator.cpp
│ ├── sphereLocator.cpp
│ ├── ovalLocator.cpp
│ └── cubeLocator.cpp
├── LocatorLib.sln
└── BuildMe.txt
├── Samples
├── pyramid.txt
└── shape.txt
├── LocatorLib.mod
├── scripts
├── AEcubeLocatorTemplate.mel
├── AEovalLocatorTemplate.mel
├── AEsphereLocatorTemplate.mel
├── AEsquareLocatorTemplate.mel
└── AEcustomLocatorTemplate.mel
├── LICENSE
├── .gitignore
└── README.md
/Sources/LocatorLib/Root.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ADN-DevTech/Maya-Locator/HEAD/Sources/LocatorLib/Root.rc
--------------------------------------------------------------------------------
/Sources/LocatorLib/LocatorLib-5.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/LocatorLib.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
--------------------------------------------------------------------------------
/Samples/pyramid.txt:
--------------------------------------------------------------------------------
1 | 5
2 | -0.5 0.0 -0.5
3 | -0.5 0.0 0.5
4 | 0.5 0.0 0.5
5 | 0.5 0.0 -0.5
6 | 0.0 1.0 0.0
7 | 6
8 | 0 2 1
9 | 0 3 2
10 | 0 4 1
11 | 1 4 2
12 | 2 4 3
13 | 3 4 0
14 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/pyramid.txt:
--------------------------------------------------------------------------------
1 | 5
2 | -0.5 0.0 -0.5
3 | -0.5 0.0 0.5
4 | 0.5 0.0 0.5
5 | 0.5 0.0 -0.5
6 | 0.0 1.0 0.0
7 | 6
8 | 0 2 1
9 | 0 3 2
10 | 0 4 1
11 | 1 4 2
12 | 2 4 3
13 | 3 4 0
14 |
--------------------------------------------------------------------------------
/LocatorLib.mod:
--------------------------------------------------------------------------------
1 | + PLATFORM:win32 MAYAVERSION: LocatorLib 1.0 /LocatorLib
2 | + PLATFORM:win64 MAYAVERSION: LocatorLib 1.0 /LocatorLib
3 | + PLATFORM:mac MAYAVERSION: LocatorLib 1.0 /LocatorLib
4 | + PLATFORM:linux MAYAVERSION: LocatorLib 1.0 /LocatorLib
5 |
--------------------------------------------------------------------------------
/Samples/shape.txt:
--------------------------------------------------------------------------------
1 | 21
2 | 0.00 0.0 -0.70
3 | 0.04 0.0 -0.69
4 | 0.09 0.0 -0.65
5 | 0.13 0.0 -0.61
6 | 0.16 0.0 -0.54
7 | 0.17 0.0 -0.46
8 | 0.17 0.0 -0.35
9 | 0.16 0.0 -0.25
10 | 0.15 0.0 -0.14
11 | 0.13 0.0 0.00
12 | 0.00 0.0 0.00
13 | -0.13 0.0 0.00
14 | -0.15 0.0 -0.14
15 | -0.16 0.0 -0.25
16 | -0.17 0.0 -0.35
17 | -0.17 0.0 -0.46
18 | -0.16 0.0 -0.54
19 | -0.13 0.0 -0.61
20 | -0.09 0.0 -0.65
21 | -0.04 0.0 -0.69
22 | -0.00 0.0 -0.70
23 | 0
--------------------------------------------------------------------------------
/Sources/LocatorLib/shape.txt:
--------------------------------------------------------------------------------
1 | 21
2 | 0.00 0.0 -0.70
3 | 0.04 0.0 -0.69
4 | 0.09 0.0 -0.65
5 | 0.13 0.0 -0.61
6 | 0.16 0.0 -0.54
7 | 0.17 0.0 -0.46
8 | 0.17 0.0 -0.35
9 | 0.16 0.0 -0.25
10 | 0.15 0.0 -0.14
11 | 0.13 0.0 0.00
12 | 0.00 0.0 0.00
13 | -0.13 0.0 0.00
14 | -0.15 0.0 -0.14
15 | -0.16 0.0 -0.25
16 | -0.17 0.0 -0.35
17 | -0.17 0.0 -0.46
18 | -0.16 0.0 -0.54
19 | -0.13 0.0 -0.61
20 | -0.09 0.0 -0.65
21 | -0.04 0.0 -0.69
22 | -0.00 0.0 -0.70
23 | 0
--------------------------------------------------------------------------------
/Sources/LocatorLib/Resource.h:
--------------------------------------------------------------------------------
1 | //{{NO_DEPENDENCIES}}
2 | // Microsoft Visual C++ generated include file.
3 | // Used by LocatorLib.rc
4 | //
5 | #define IDS_PROJNAME 100
6 | #define IDR_LOCATORLIB 101
7 |
8 | // Next default values for new objects
9 | //
10 | #ifdef APSTUDIO_INVOKED
11 | #ifndef APSTUDIO_READONLY_SYMBOLS
12 | #define _APS_NEXT_RESOURCE_VALUE 102
13 | #define _APS_NEXT_COMMAND_VALUE 32768
14 | #define _APS_NEXT_CONTROL_VALUE 100
15 | #define _APS_NEXT_SYMED_VALUE 102
16 | #endif
17 | #endif
18 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Release.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>13.0.0.1
7 | <_PropertySheetDisplayName>Maya 2013 Release
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | MultiThreadedDLL
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/StdAfx.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | //-----------------------------------------------------------------------------
10 | //------ StdAfx.cpp : source file that includes just the standard includes
11 | //------ StdAfx.pch will be the pre-compiled header
12 | //------ StdAfx.obj will contain the pre-compiled type information
13 | //-----------------------------------------------------------------------------
14 | #include "StdAfx.h"
15 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Debug.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>13.0.0.1
7 | <_PropertySheetDisplayName>Maya 2013 Debug
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | MultiThreadedDLL
19 |
20 |
21 | true
22 |
23 |
24 |
25 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2013.5/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2013/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2014/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Mac2013.5/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Mac2013/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Mac2014/buildrules:
--------------------------------------------------------------------------------
1 | #-
2 | # Copyright 2012 Autodesk, Inc. All rights reserved.
3 | #
4 | # Use of this software is subject to the terms of the Autodesk license
5 | # agreement provided at the time of installation or download, or which
6 | # otherwise accompanies this software in either electronic or hard copy form.
7 | #+
8 |
9 | INCL_BUILDRULES := 1
10 |
11 | include $(TOP)/buildconfig
12 |
13 | # Generic Rules
14 | .PHONY : all plugins depend clean Clean
15 | .DEFAULT : all
16 |
17 | all : plugins
18 |
19 | # Generic Rules
20 | $(DSTDIR)/%.o : $(SRCDIR)/%.c
21 | $(CC) -c $(INCLUDES) $(CFLAGS) $< -o $@
22 |
23 | $(DSTDIR)/%.o : $(SRCDIR)/%.cpp
24 | $(C++) -c $(INCLUDES) $(C++FLAGS) $< -o $@
25 |
26 | $(DSTDIR)/%.i : $(SRCDIR)/%.cpp
27 | $(C++) -E $(INCLUDES) $(C++FLAGS) $(SRCDIR)/$*.cpp > $(DSTDIR)/$*.i
28 |
--------------------------------------------------------------------------------
/scripts/AEcubeLocatorTemplate.mel:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Cyrille
11 | // 1.0 Original release (October 1, 2012)
12 |
13 | global proc AEcubeLocatorTemplate (string $nodeName) {
14 | editorTemplate -beginScrollLayout ;
15 |
16 | editorTemplate -beginLayout "Cube Locator Attributes" -collapse 0;
17 | editorTemplate -label "Size" -addControl "size";
18 | editorTemplate -endLayout;
19 |
20 | // Include/call base class/node attributes
21 | editorTemplate -beginLayout (uiRes("m_AElocatorTemplate.kLocatorAttributes")) -collapse 0;
22 | AElocatorCommon $nodeName;
23 | editorTemplate -endLayout;
24 |
25 | AElocatorInclude $nodeName;
26 |
27 | editorTemplate -addExtraControls;
28 | editorTemplate -endScrollLayout ;
29 | }
30 |
--------------------------------------------------------------------------------
/scripts/AEovalLocatorTemplate.mel:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Cyrille
11 | // 1.0 Original release (October 1, 2012)
12 |
13 | global proc AEovalLocatorTemplate (string $nodeName) {
14 | editorTemplate -beginScrollLayout ;
15 |
16 | editorTemplate -beginLayout "Oval Locator Attributes" -collapse 0;
17 | editorTemplate -label "Size" -addControl "size";
18 | editorTemplate -endLayout;
19 |
20 | // Include/call base class/node attributes
21 | editorTemplate -beginLayout (uiRes("m_AElocatorTemplate.kLocatorAttributes")) -collapse 0;
22 | AElocatorCommon $nodeName;
23 | editorTemplate -endLayout;
24 |
25 | AElocatorInclude $nodeName;
26 |
27 | editorTemplate -addExtraControls;
28 | editorTemplate -endScrollLayout ;
29 | }
30 |
--------------------------------------------------------------------------------
/scripts/AEsphereLocatorTemplate.mel:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Cyrille
11 | // 1.0 Original release (October 1, 2012)
12 |
13 | global proc AEsphereLocatorTemplate (string $nodeName) {
14 | editorTemplate -beginScrollLayout ;
15 |
16 | editorTemplate -beginLayout "Sphere Locator Attributes" -collapse 0;
17 | editorTemplate -label "Size" -addControl "size";
18 | editorTemplate -endLayout;
19 |
20 | // Include/call base class/node attributes
21 | editorTemplate -beginLayout (uiRes("m_AElocatorTemplate.kLocatorAttributes")) -collapse 0;
22 | AElocatorCommon $nodeName;
23 | editorTemplate -endLayout;
24 |
25 | AElocatorInclude $nodeName;
26 |
27 | editorTemplate -addExtraControls;
28 | editorTemplate -endScrollLayout ;
29 | }
30 |
--------------------------------------------------------------------------------
/scripts/AEsquareLocatorTemplate.mel:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Cyrille
11 | // 1.0 Original release (October 1, 2012)
12 |
13 | global proc AEsquareLocatorTemplate (string $nodeName) {
14 | editorTemplate -beginScrollLayout ;
15 |
16 | editorTemplate -beginLayout "Square Locator Attributes" -collapse 0;
17 | editorTemplate -label "Size" -addControl "size";
18 | editorTemplate -endLayout;
19 |
20 | // Include/call base class/node attributes
21 | editorTemplate -beginLayout (uiRes("m_AElocatorTemplate.kLocatorAttributes")) -collapse 0;
22 | AElocatorCommon $nodeName;
23 | editorTemplate -endLayout;
24 |
25 | AElocatorInclude $nodeName;
26 |
27 | editorTemplate -addExtraControls;
28 | editorTemplate -endScrollLayout ;
29 | }
30 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/LocatorLibCmd.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Naiqi Weng
11 | // 1.0 Original release (September 1, 2012)
12 |
13 | #pragma once
14 |
15 | //-----------------------------------------------------------------------------
16 | class LocatorLibCmd : public MPxCommand
17 | {
18 | public:
19 | LocatorLibCmd () : MPxCommand () {}
20 | virtual ~LocatorLibCmd () {}
21 |
22 | virtual MStatus doIt (const MArgList &args) ;
23 |
24 | static void *creator() { return new LocatorLibCmd () ; }
25 | static MSyntax newSyntax () ;
26 |
27 | static MStatus registerMe (MFnPlugin &plugin) {
28 | return (plugin.registerCommand (_T("LocatorLibCmd"), LocatorLibCmd::creator, LocatorLibCmd::newSyntax)) ;
29 | }
30 | static MStatus unregisterMe (MFnPlugin &plugin) {
31 | return (plugin.deregisterCommand (_T("LocatorLibCmd"))) ;
32 | }
33 |
34 | } ;
35 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) Autodesk, Inc. All rights reserved
2 |
3 | Maya Locator sample
4 | by Cyrille Fauvel / Naiqi Weng - Autodesk Developer Network (ADN)
5 | October 2012
6 |
7 | Permission is hereby granted, free of charge, to any person obtaining a copy of
8 | this software and associated documentation files (the "Software"), to deal in
9 | the Software without restriction, including without limitation the rights to
10 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
11 | the Software, and to permit persons to whom the Software is furnished to do so,
12 | subject to the following conditions:
13 |
14 | The above copyright notice and this permission notice shall be included in all
15 | copies or substantial portions of the Software.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
19 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
20 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Shape.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | // Release History
10 | // Written by Cyrille Fauvel
11 | // 1.0 Original release (September 1, 2012)
12 |
13 | #pragma once
14 |
15 | //-----------------------------------------------------------------------------
16 | class Shape {
17 | public:
18 | MPointArray vertices ;
19 | MIntArray triangles ;
20 |
21 | public:
22 | Shape () {}
23 | virtual ~Shape () {}
24 |
25 | virtual bool loadFromFile (std::string filename) ;
26 | virtual void renderWireFrame (float multiplier =1.0f) ;
27 | virtual void renderShaded (float multiplier =1.0f) ;
28 | virtual MBoundingBox boundingbox (float multiplier =1.0f) ;
29 |
30 | } ;
31 |
32 | //-----------------------------------------------------------------------------
33 | class ShapeMgr {
34 | public:
35 | std::map shapeList ;
36 |
37 | public:
38 | ShapeMgr () ;
39 | virtual ~ShapeMgr () {}
40 |
41 | Shape &shapeData (std::string filename) ;
42 |
43 | } ;
44 |
45 | extern ShapeMgr shapeMgr ;
46 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/plugin.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>13.0.0.1
7 | <_PropertySheetDisplayName>Maya 2013 Plug-in
8 | .mll
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Auto
20 |
21 | $(MayaDir)\bin\maya.exe
22 | $(ProjectDir)
23 |
24 |
25 |
26 |
27 |
28 |
29 | DynamicLibrary
30 |
31 |
32 |
33 |
34 | NT_PLUGIN;REQUIRE_IOSTREAM;%(PreprocessorDefinitions)
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2013.5/linux_plugin.map:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright (c) 2011 Autodesk, Inc.
3 | * All rights reserved.
4 | *
5 | * These coded instructions, statements, and computer programs contain
6 | * unpublished proprietary information written by Autodesk, Inc., and are
7 | * protected by Federal copyright law. They may not be disclosed to third
8 | * parties or copied or duplicated in any form, in whole or in part, without
9 | * the prior written consent of Autodesk, Inc.
10 | ****************************************************************************/
11 |
12 | /*
13 | * When compiling plug-ins for Maya, we make sure to export only the
14 | * symbols for the initializePlugin(MObject) and
15 | * uninitializePlugin(MObject) functions. In particular, this
16 | * prevents the plug-ins from exporting symbols coming from static
17 | * libaries against which the plug-ins is linked.
18 | *
19 | * Here's why:
20 | *
21 | * Plug-ins are written by separate developers. Each of them might
22 | * want to use various libraries to implement their plug-ins. At
23 | * times, it occurs that plug-ins written by different developers are
24 | * using different and "incompatible" versions of the same library. To
25 | * support this, we recommend that plug-ins be linked against static
26 | * versions of these libraries. And, by hidding the symbols of these
27 | * libraries, we prevent the two incompatible versions of the library
28 | * from interferring with each others.
29 | */
30 |
31 | {
32 | global:
33 | _Z16initializePlugin7MObject ;
34 | _Z18uninitializePlugin7MObject ;
35 | local:
36 | *;
37 | };
38 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2013/linux_plugin.map:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright (c) 2011 Autodesk, Inc.
3 | * All rights reserved.
4 | *
5 | * These coded instructions, statements, and computer programs contain
6 | * unpublished proprietary information written by Autodesk, Inc., and are
7 | * protected by Federal copyright law. They may not be disclosed to third
8 | * parties or copied or duplicated in any form, in whole or in part, without
9 | * the prior written consent of Autodesk, Inc.
10 | ****************************************************************************/
11 |
12 | /*
13 | * When compiling plug-ins for Maya, we make sure to export only the
14 | * symbols for the initializePlugin(MObject) and
15 | * uninitializePlugin(MObject) functions. In particular, this
16 | * prevents the plug-ins from exporting symbols coming from static
17 | * libaries against which the plug-ins is linked.
18 | *
19 | * Here's why:
20 | *
21 | * Plug-ins are written by separate developers. Each of them might
22 | * want to use various libraries to implement their plug-ins. At
23 | * times, it occurs that plug-ins written by different developers are
24 | * using different and "incompatible" versions of the same library. To
25 | * support this, we recommend that plug-ins be linked against static
26 | * versions of these libraries. And, by hidding the symbols of these
27 | * libraries, we prevent the two incompatible versions of the library
28 | * from interferring with each others.
29 | */
30 |
31 | {
32 | global:
33 | _Z16initializePlugin7MObject ;
34 | _Z18uninitializePlugin7MObject ;
35 | local:
36 | *;
37 | };
38 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Linux2014/linux_plugin.map:
--------------------------------------------------------------------------------
1 | /****************************************************************************
2 | * Copyright (c) 2011 Autodesk, Inc.
3 | * All rights reserved.
4 | *
5 | * These coded instructions, statements, and computer programs contain
6 | * unpublished proprietary information written by Autodesk, Inc., and are
7 | * protected by Federal copyright law. They may not be disclosed to third
8 | * parties or copied or duplicated in any form, in whole or in part, without
9 | * the prior written consent of Autodesk, Inc.
10 | ****************************************************************************/
11 |
12 | /*
13 | * When compiling plug-ins for Maya, we make sure to export only the
14 | * symbols for the initializePlugin(MObject) and
15 | * uninitializePlugin(MObject) functions. In particular, this
16 | * prevents the plug-ins from exporting symbols coming from static
17 | * libaries against which the plug-ins is linked.
18 | *
19 | * Here's why:
20 | *
21 | * Plug-ins are written by separate developers. Each of them might
22 | * want to use various libraries to implement their plug-ins. At
23 | * times, it occurs that plug-ins written by different developers are
24 | * using different and "incompatible" versions of the same library. To
25 | * support this, we recommend that plug-ins be linked against static
26 | * versions of these libraries. And, by hidding the symbols of these
27 | * libraries, we prevent the two incompatible versions of the library
28 | * from interferring with each others.
29 | */
30 |
31 | {
32 | global:
33 | _Z16initializePlugin7MObject ;
34 | _Z18uninitializePlugin7MObject ;
35 | local:
36 | *;
37 | };
38 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Autodesk.maya-2013.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>13.0.0.1
7 | <_PropertySheetDisplayName>Maya 2013
8 |
9 |
10 |
11 | C:\Program Files\Autodesk\Maya2013
12 | C:\Program Files (x86)\Autodesk\Maya2013
13 | $(MayaDir)\devkit
14 |
15 | $(MayaDir)\include
16 | $(MayaDir)\mentalray\include
17 |
18 | $(MayaDir)\lib
19 | $(MayaDir)\mentalray\lib
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | $(MayaIncs);$(MayaMRIncs);$(IncludePath)
30 | $(MayaIncs);$(ReferencePath)
31 | $(MayaLibs);$(MayaMRLibs);$(LibraryPath)
32 |
33 |
34 |
35 |
36 |
37 |
38 | $(OutDir)$(TargetName).pdb
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Autodesk.maya-2014.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>14.0.0.1
7 | <_PropertySheetDisplayName>Maya 2014
8 |
9 |
10 |
11 | C:\Program Files\Autodesk\Maya2014
12 | C:\Program Files (x86)\Autodesk\Maya2014
13 | $(MayaDir)\devkit
14 |
15 | $(MayaDir)\include
16 | $(MayaDir)\mentalray\include
17 |
18 | $(MayaDir)\lib
19 | $(MayaDir)\mentalray\lib
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | $(MayaIncs);$(MayaMRIncs);$(IncludePath)
30 | $(MayaIncs);$(ReferencePath)
31 | $(MayaLibs);$(MayaMRLibs);$(LibraryPath)
32 |
33 |
34 |
35 |
36 |
37 |
38 | $(OutDir)$(TargetName).pdb
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/Autodesk.maya-2013-5.props:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | <_ProjectFileVersion>13.5.0.1
7 | <_PropertySheetDisplayName>Maya 2013-5
8 |
9 |
10 |
11 | C:\Program Files\Autodesk\Maya2013.5
12 | C:\Program Files (x86)\Autodesk\Maya2013.5
13 | $(MayaDir)\devkit
14 |
15 | $(MayaDir)\include
16 | $(MayaDir)\mentalray\include
17 |
18 | $(MayaDir)\lib
19 | $(MayaDir)\mentalray\lib
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | $(MayaIncs);$(MayaMRIncs);$(IncludePath)
30 | $(MayaIncs);$(ReferencePath)
31 | $(MayaLibs);$(MayaMRLibs);$(LibraryPath)
32 |
33 |
34 |
35 |
36 |
37 |
38 | $(OutDir)$(TargetName).pdb
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/Sources/LocatorLib/StdAfx.h:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright 2012 Autodesk, Inc. All rights reserved.
3 | //
4 | // Use of this software is subject to the terms of the Autodesk license
5 | // agreement provided at the time of installation or download, or which
6 | // otherwise accompanies this software in either electronic or hard copy form.
7 | //
8 |
9 | //-----------------------------------------------------------------------------
10 | //- StdAfx.h : include file for standard system include files,
11 | //- or project specific include files that are used frequently,
12 | //- but are changed infrequently
13 | //-----------------------------------------------------------------------------
14 | #pragma once
15 |
16 | #ifdef NT_PLUGIN
17 | #pragma comment (lib, "opengl32.lib")
18 | #pragma comment (lib, "glu32.lib")
19 | #endif
20 |
21 | ////-----------------------------------------------------------------------------
22 | //----- This file is preprocessor symbol driven.
23 | //----- Define:
24 | //----- _PYTHON_MODULE_ to include and import Python headers and libs in your project.
25 | //#define _PYTHON_MODULE_
26 | //----- _MAYA_QT_ to include and import Maya QT headers and libs in your project.
27 | //#define _MAYA_QT_
28 |
29 | #include "mayaHeaders.h"
30 | #ifdef NT_PLUGIN
31 | #include
32 | #else
33 | #define _T(a) a
34 | #endif
35 | #include
36 | #include