Panda3D
Loading...
Searching...
No Matches
mayaPview.h
Go to the documentation of this file.
1/**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file mayaPview.h
10 * @author drose
11 * @date 2003-03-11
12 */
13
14#ifndef MAYAPVIEW_H
15#define MAYAPVIEW_H
16
17#include "pandatoolbase.h"
18#include "pandaFramework.h"
19
20#include "pre_maya_include.h"
21#include <maya/MArgList.h>
22#include <maya/MPxCommand.h>
23#include <maya/MObject.h>
24#include "post_maya_include.h"
25
26/**
27 * This class serves as a plug-in to Maya to allow viewing the current Maya
28 * selection as it will be converted to Panda.
29 */
30class MayaPview : public MPxCommand {
31public:
32 MayaPview();
33 virtual MStatus doIt(const MArgList &args);
34
35 static void *creator();
36
37private:
38 bool convert(const NodePath &parent, bool animate);
39};
40
41EXPCL_MISC MStatus initializePlugin(MObject obj);
42EXPCL_MISC MStatus uninitializePlugin(MObject obj);
43
44
45#endif
This class serves as a plug-in to Maya to allow viewing the current Maya selection as it will be conv...
Definition mayaPview.h:30
static void * creator()
This is used to create a new instance of the plugin.
virtual MStatus doIt(const MArgList &args)
Called when the plugin command is invoked.
Definition mayaPview.cxx:63
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition nodePath.h:159
EXPCL_MISC MStatus uninitializePlugin(MObject obj)
Called by Maya when the plugin is unloaded.
EXPCL_MISC MStatus initializePlugin(MObject obj)
Called by Maya when the plugin is loaded.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.